Sign inSign up

luizeof/cleanup

By luizeof

Updated over 7 years ago

Cleanup unused docker images, containers or volumes

Image
0

640

luizeof/cleanup repository overview

Docker Cleanup

This service run docker $cmd prune command that allow automatic cleanup on docker.

By default the following object cmd are pruned:

  • container
  • volume
  • network

You can run this service on a swarm to cleanup the system disk usage.

Usage

To cleanup containers:

$ docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock liske/docker-prune container

To cleanup images:

$ docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock liske/docker-prune image

To cleanup volumes:

$ docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock liske/docker-prune volume

To cleanup network:

$ docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock liske/docker-prune network

Tag summary

Content type

Image

Digest

Size

48.6 MB

Last updated

over 7 years ago

docker pull luizeof/cleanup