docker-archive / classicswarm

Swarm Classic: a container clustering system. Not to be confused with Docker Swarm which is at https://github.com/docker/swarmkit
Apache License 2.0
5.75k stars 1.08k forks source link

[Feature] "docker system prune" for Swarm nodes #2940

Closed Dzhuneyt closed 4 years ago

Dzhuneyt commented 5 years ago

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:

  1. docker system prune works on Swarm nodes by default in the future.
  2. A new command docker swarm prune is introduced for Managers, that just propagates the docker system prune command across all nodes.

Thoughts?

justincormack commented 4 years ago

This issue is for https://github.com/docker/swarmkit not the old standalone Swarm.