This repository was archived by the owner on Apr 4, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
source/compose.manager/scripts Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /bin/bash
22
33export HOME=/root
4- export DOCKER_JSON=/usr/local/emhttp/state/plugins/dynamix.docker.manager/docker.json
4+ DOCKER_MANAGER=/usr/local/emhttp/state/plugins/dynamix.docker.manager
5+ DOCKER_JSON=$DOCKER_MANAGER /docker.json
6+ DOCKER_IMAGES=$DOCKER_MANAGER /images
7+ UNRAID_IMAGES=/var/lib/docker/unraid/images
58
69case $1 in
710
811 up)
912 docker compose -f " $2 " -p " $3 " ps -a |
1013 awk ' {if (NR!=1) {printf("%s.\"%s\"", sep, $1); sep=", "}}' |
1114 xargs -0 -I {} jq ' del({})' $DOCKER_JSON > $DOCKER_JSON
15+ docker compose -f " $2 " -p " $3 " ps -a |
16+ awk ' {if (NR!=1) {print $1}}' |
17+ xargs -I {} find $DOCKER_IMAGES $UNRAID_IMAGES -name {}.png -delete
1218 docker compose -f " $2 " -p " $3 " up -d 2>&1
1319 ;;
1420
1521 down)
1622 docker compose -f " $2 " -p " $3 " ps -a |
1723 awk ' {if (NR!=1) {printf("%s.\"%s\"", sep, $1); sep=", "}}' |
1824 xargs -0 -I {} jq ' del({})' $DOCKER_JSON > $DOCKER_JSON
25+ docker compose -f " $2 " -p " $3 " ps -a |
26+ awk ' {if (NR!=1) {print $1}}' |
27+ xargs -I {} find $DOCKER_IMAGES $UNRAID_IMAGES -name {}.png -delete
1928 docker compose -f " $2 " -p " $3 " down 2>&1
2029 ;;
2130
You can’t perform that action at this time.
0 commit comments