[GH-ISSUE #13] Docker target readlink fails #2

Open
opened 2026-03-04 19:25:37 +03:00 by kerem · 2 comments
Owner

Originally created by @henrykuijpers on GitHub (Dec 8, 2025).
Original GitHub issue: https://github.com/007revad/Synology_docker_cleanup/issues/13

https://github.com/007revad/Synology_docker_cleanup/blob/main/syno_docker_cleanup.sh#L69

readlink /var/packages/Docker/target/docker

returns an empty line.

readlink /var/packages/Docker/target

returns /volume4/@appstore/Docker

So I think this is a bug? Or at least Docker is behaving different in my NAS(?).

Originally created by @henrykuijpers on GitHub (Dec 8, 2025). Original GitHub issue: https://github.com/007revad/Synology_docker_cleanup/issues/13 https://github.com/007revad/Synology_docker_cleanup/blob/main/syno_docker_cleanup.sh#L69 ``` readlink /var/packages/Docker/target/docker ``` returns an empty line. ``` readlink /var/packages/Docker/target ``` returns `/volume4/@appstore/Docker` So I think this is a bug? Or at least Docker is behaving different in my NAS(?).
Author
Owner

@henrykuijpers commented on GitHub (Dec 8, 2025):

ash-4.4# cd /var/packages/Docker
ash-4.4# ls -al
total 52
drwxr-xr-x  5 root root  4096 Dec  8 19:08 .
drwxr-xr-x 15 root root  4096 Dec  8 19:08 ..
drwxr-xr-x  3 root root  4096 Dec  8 19:08 conf
-rw-r--r--  1 root root     0 Dec  8 19:08 enabled
lrwxrwxrwx  1 root root    24 Dec  8 19:08 etc -> /volume4/@appconf/Docker
lrwxrwxrwx  1 root root    24 Dec  8 19:08 home -> /volume4/@apphome/Docker
-rw-r--r--  1 root root 31851 Dec  8 19:08 INFO
drwxr-xr-x  2 root root  4096 Dec  8 19:08 scripts
lrwxrwxrwx  1 root root    25 Dec  8 19:08 target -> /volume4/@appstore/Docker
lrwxrwxrwx  1 root root    24 Dec  8 19:08 tmp -> /volume4/@apptemp/Docker
lrwxrwxrwx  1 root root    24 Dec  8 19:08 var -> /volume4/@appdata/Docker
drwxr-xr-x  2 root root  4096 Dec  8 19:08 WIZARD_UIFILES
<!-- gh-comment-id:3628517341 --> @henrykuijpers commented on GitHub (Dec 8, 2025): ``` ash-4.4# cd /var/packages/Docker ash-4.4# ls -al total 52 drwxr-xr-x 5 root root 4096 Dec 8 19:08 . drwxr-xr-x 15 root root 4096 Dec 8 19:08 .. drwxr-xr-x 3 root root 4096 Dec 8 19:08 conf -rw-r--r-- 1 root root 0 Dec 8 19:08 enabled lrwxrwxrwx 1 root root 24 Dec 8 19:08 etc -> /volume4/@appconf/Docker lrwxrwxrwx 1 root root 24 Dec 8 19:08 home -> /volume4/@apphome/Docker -rw-r--r-- 1 root root 31851 Dec 8 19:08 INFO drwxr-xr-x 2 root root 4096 Dec 8 19:08 scripts lrwxrwxrwx 1 root root 25 Dec 8 19:08 target -> /volume4/@appstore/Docker lrwxrwxrwx 1 root root 24 Dec 8 19:08 tmp -> /volume4/@apptemp/Docker lrwxrwxrwx 1 root root 24 Dec 8 19:08 var -> /volume4/@appdata/Docker drwxr-xr-x 2 root root 4096 Dec 8 19:08 WIZARD_UIFILES ```
Author
Owner

@007revad commented on GitHub (Dec 9, 2025):

Can you tell me if there's a docker symlink in /var/packages/Docker/target

cd /var/packages/Docker/target
ls -al

Which version of DSM? Which Synology NAS model? Which version is the Docker package?

On my DS1812+ with DSM 6.2.4 and Docker 20.10.3-0554 the readlink /var/packages/Docker/target/docker command returns the location of the @docker folder.

root@WEBBER:~# readlink /var/packages/Docker/target/docker
/volume1/@docker
Image
<!-- gh-comment-id:3630272928 --> @007revad commented on GitHub (Dec 9, 2025): Can you tell me if there's a `docker` symlink in /var/packages/Docker/target ``` cd /var/packages/Docker/target ls -al ``` Which version of DSM? Which Synology NAS model? Which version is the Docker package? On my DS1812+ with DSM 6.2.4 and Docker 20.10.3-0554 the `readlink /var/packages/Docker/target/docker` command returns the location of the `@docker` folder. ``` root@WEBBER:~# readlink /var/packages/Docker/target/docker /volume1/@docker ``` <img width="753" height="301" alt="Image" src="https://github.com/user-attachments/assets/caf551b6-ef65-4c8a-b6ad-979a01aa20e2" />
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_docker_cleanup#2
No description provided.