HUB
Sign inSign up
cleanup logo

luizeof/cleanup

By luizeof

•Updated almost 8 years ago

Cleanup unused docker images, containers or volumes

Image
0

681

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
Recent tags
Content type
Image
Digest
Size
48.6 MB
Last updated
almost 8 years ago
docker pull luizeof/cleanup:latest