Add "docker image prune" query for moving Container Manager #107
Replies: 2 comments
-
Interesting. My Synology_docker_cleanup script uses the following to delete dangling images:
but it looks like I could have just used:
On my test Synology I had 5 images and 3 containers and ran
It appears to have deleted 6 images, but didn't show which images. I assume 4 of those were dangling images. The 2 unused images totalled 64MB so I'm not sure why it says I think I'll use |
Beta Was this translation helpful? Give feedback.
-
I've added "docker image prune" in v3.2.61 https://github.com/007revad/Synology_app_mover/releases/tag/v3.2.61 |
Beta Was this translation helpful? Give feedback.
-
Hello Dave,
nice work! very handy script. Maybe you could add a query to clean-up docker images before stopping the Container Manager and start a backup. My backup takes ages because of millions of unnecessary docker subvolume files in the @docker directory. The docker image prune command should do the job. (See: https://docs.docker.com/reference/cli/docker/image/prune/)
Beta Was this translation helpful? Give feedback.
All reactions