Skip to content

Commit

Permalink
Sync from GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
ailg666 committed Dec 19, 2024
1 parent 826f120 commit 7279fe2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xy_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2017,6 +2017,9 @@ fix_docker() {
if [ -f /etc/synoinfo.conf ]; then
DOCKER_ROOT_DIR=$(docker info 2>/dev/null | grep 'Docker Root Dir' | awk -F': ' '{print $2}')
DOCKER_CONFIG_FILE="${DOCKER_ROOT_DIR%/@docker}/@appconf/ContainerManager/dockerd.json"
elif grep -q 'NAME="iStoreOS"' /etc/os-release; then
DOCKER_CONFIG_FILE=$(ps w | grep dockerd | awk '{for(i=1;i<=NF;i++) if ($i ~ /^--config-file(=|$)/) {if ($i ~ /^--config-file=/) print substr($i, index($i, "=") + 1); else print $(i+1)}}')
DOCKER_CONFIG_FILE=${DOCKER_CONFIG_FILE:-/etc/docker/daemon.json}
else
DOCKER_CONFIG_FILE='/etc/docker/daemon.json'
fi
Expand Down Expand Up @@ -2047,7 +2050,6 @@ fix_docker() {
exit 0
fi


docker_pid

docker rmi hello-world:latest >/dev/null 2>&1
Expand Down

0 comments on commit 7279fe2

Please sign in to comment.