Updating
cd synology-docker
git pull
sudo ./syno_docker_update.sh updateNew here, or still have containers on the db logger? Follow the README first.
To use exactly this version, run git checkout 3.4.0 in your copy (git checkout main returns to the latest), or download synology-docker.tar.gz below.
Highlights
This is mostly a testing release. Updates work the same as in 3.3.0 except for one small --backup fix. The main addition is a networking check you can run on your own NAS before and after an update.
New: manual Docker networking check (#139)
sudo ./manual-tests/test_docker_network.shThis runs against your live Docker install. It prints your kernel, DSM, and Docker versions and the current FORWARD rules, then starts a few short-lived containers and networks to check that:
--internalnetworks are isolated from the default bridge- containers on separate bridge networks can't reach each other
- published ports (
-p) are reachable, and unpublished containers don't get one - containers on the same network can reach each other by name
- containers can reach the outside network (this catches missing
FORWARDrules, see #134)
Everything it creates is named syno-net-check-* and gets removed when it exits, even after a failure or Ctrl+C. It pulls nginx:alpine and busybox:1.36 if you don't already have them. Without internet access, set EGRESS_URL to a local address, or leave it empty to skip the outbound check. See manual-tests/README.md for details.
If you're reporting a networking problem after an update, please run this and include the full output in your issue.
Fix: clearer error for a bad --backup path
If --backup points to a folder that doesn't exist, the script now stops right away with Backup directory not found: <path> instead of continuing with an empty backup name.
More updater regression tests (#136)
New mocked tests cover these cases:
- an Engine archive missing
dockerordockerdis rejected before Docker is stopped - if Docker doesn't fully stop, or the stop times out, the update aborts before replacing any binaries
restorefails cleanly without--backup, and works when the backup name includes a path- components already at their target version aren't reinstalled, except that Docker 29.7.0+ with an older
runcstill gets the bundledrunc restore,start, andstopstill work when the package is stopped, and versions can't be detectedupdatestops safely when it needs the current version and can't detect it
CI now also runs ShellCheck on manual-tests/.
What's Changed
- test: add focused regression coverage for updater branches by @bslatyer in #136
- feat: add manual networking tests by @telnetdoogie in #139
Full Changelog: 3.3.0...3.4.0