[GH-ISSUE #10] 如何恢复 #4

Open
opened 2026-03-07 19:07:59 +03:00 by kerem · 1 comment
Owner

Originally created by @Kaitouhan on GitHub (Apr 9, 2025).
Original GitHub issue: https://github.com/007revad/Synology_ContainerManager_IPv6/issues/10

使用脚本以后docker无法开启,如何恢复到使用前

Originally created by @Kaitouhan on GitHub (Apr 9, 2025). Original GitHub issue: https://github.com/007revad/Synology_ContainerManager_IPv6/issues/10 使用脚本以后docker无法开启,如何恢复到使用前
Author
Owner

@mikal commented on GitHub (Dec 11, 2025):

Please try to save the following codes as .sh and then run it.
我开启之后,容器无法新建了,使用以下脚本恢复。

#!/bin/bash

if /usr/syno/bin/synopkg status ContainerManager >/dev/null 2>&1; then
    SERVICE="ContainerManager"
else
    SERVICE="Docker"
fi

echo "Restoring $SERVICE IPv6 configuration..."

sudo /usr/syno/bin/synopkg stop $SERVICE

sudo cp /var/packages/$SERVICE/etc/dockerd.json.bak /var/packages/$SERVICE/etc/dockerd.json
sudo cp /var/packages/$SERVICE/target/config/dockerd.json.bak /var/packages/$SERVICE/target/config/dockerd.json
sudo cp /var/packages/$SERVICE/scripts/start-stop-status.bak /var/packages/$SERVICE/scripts/start-stop-status

sudo /usr/syno/bin/synopkg start $SERVICE

echo "Restore completed!"
<!-- gh-comment-id:3640514205 --> @mikal commented on GitHub (Dec 11, 2025): Please try to save the following codes as .sh and then run it. 我开启之后,容器无法新建了,使用以下脚本恢复。 ``` #!/bin/bash if /usr/syno/bin/synopkg status ContainerManager >/dev/null 2>&1; then SERVICE="ContainerManager" else SERVICE="Docker" fi echo "Restoring $SERVICE IPv6 configuration..." sudo /usr/syno/bin/synopkg stop $SERVICE sudo cp /var/packages/$SERVICE/etc/dockerd.json.bak /var/packages/$SERVICE/etc/dockerd.json sudo cp /var/packages/$SERVICE/target/config/dockerd.json.bak /var/packages/$SERVICE/target/config/dockerd.json sudo cp /var/packages/$SERVICE/scripts/start-stop-status.bak /var/packages/$SERVICE/scripts/start-stop-status sudo /usr/syno/bin/synopkg start $SERVICE echo "Restore completed!" ```
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Synology_ContainerManager_IPv6#4
No description provided.