From ffe439d69806cd935aa4f1cd17d579d93d6690c5 Mon Sep 17 00:00:00 2001 From: DataHearth Date: Wed, 16 Mar 2022 14:16:31 +0100 Subject: [PATCH] update readme --- README.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 7482e8b..5501699 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,8 @@ By default, `clear-docker-images` will select images that are older than 2 days docker run --name clear-docker-image -v /var/run/docker.sock:/var/run/docker.sock ghcr.io/datahearth/clear-docker-images ``` +*N.B: Since v0.5.0, container images switched from the Docker alpine docker-in-docker image to Debian 11 distroless. I recommand switching to v0.5.0 for a significant size gain (around x20 in term of image size => 230MB).* + ### Binary ```bash @@ -32,7 +34,7 @@ git clone https://github.com/DataHearth/clear-docker-images.git cd clear-docker-images cargo install --path . -clear-docker-images +clear-docker-images ``` ## Options @@ -55,18 +57,17 @@ OPTIONS: --dry-run image cleanup will not be triggered [default: false] - --force - force image removal [default: false] - -h, --help Print help information + -s, --socket + where is located the docker socket (can be a UNIX socket or TCP protocol) + + [default: /var/run/docker.sock] + -t, --tags add tags exclusion - -v, --verbose - add more logs [default: false] - -V, --version Print version information ```