Portable version of my docker-clean script intended to be run on any host capable of running Docker
Find a file
Knut Ahlers 6924335526
Check whether image is in use by hash
this seems sometimes to be required as the Docker daemon looses the
reference and does not display the name in `docker ps -a` output...

Signed-off-by: Knut Ahlers <knut@ahlers.me>
2018-07-08 21:31:43 +02:00
docker-clean Check whether image is in use by hash 2018-07-08 21:31:43 +02:00
Dockerfile Check whether image is in use by hash 2018-07-08 21:31:43 +02:00
LICENSE Add meta files 2018-07-07 11:52:17 +02:00
README.md Add meta files 2018-07-07 11:52:17 +02:00

Luzifer-docker / docker-clean

docker-clean is a portable version of my docker-clean script intended to be run on any host capable of running Docker.

The main reason to create this was I found different constellations of awk tools installed on different systems and some of them (for example mawk installed by Debian) broke the script. This container contains everything required to execute the script in a most minimal fashion.

Usage

$ docker run --rm -ti -v /var/run/docker.sock:/var/run/docker.sock luzifer/docker-clean
Removing containers created / exited >= ~1h ago...
[...]