The introduction of the "docker system prune" command was a good addition to the original Docker daemon. However, I think a similar approach is needed to maintain Swarm nodes clean and tidy (remove junk images, stopped containers, etc).
Two possible solutions:
docker system prune works on Swarm nodes by default in the future.
A new command docker swarm prune is introduced for Managers, that just propagates the docker system prune command across all nodes.
The introduction of the "docker system prune" command was a good addition to the original Docker daemon. However, I think a similar approach is needed to maintain Swarm nodes clean and tidy (remove junk images, stopped containers, etc).
Two possible solutions:
docker system prune
works on Swarm nodes by default in the future.docker swarm prune
is introduced for Managers, that just propagates thedocker system prune
command across all nodes.Thoughts?