From 8d253da4294cec9cc3ab4f45fa95a852bd64fbce Mon Sep 17 00:00:00 2001 From: DataHearth Date: Thu, 17 Feb 2022 22:17:13 +0100 Subject: [PATCH] update README.md --- README.md | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 6af9b40..f331112 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ By default (it will change in the futur), `clear-docker-images` will select imag ### Docker container ```bash -docker run --name clear-docker-image -v /var/run/docker.sock:/var/run/docker.sock ghcr.io/datahearth/clear-docker-image +docker run --name clear-docker-image -v /var/run/docker.sock:/var/run/docker.sock ghcr.io/datahearth/clear-docker-images ``` ### Binary @@ -19,7 +19,7 @@ mkdir -p $HOME/.local/bin export PATH=$PATH:$HOME/.local/bin # Available distribution: linux | darwin -wget -o $HOME/.local/bin/clear-docker-images ~/. https://github.com/DataHearth/clear-docker-images/releases/download/v0.2.0/x86_x64--clear-docker-images +wget -o $HOME/.local/bin/clear-docker-images ~/. https://github.com/DataHearth/clear-docker-images/releases/download//x86_x64--clear-docker-images clear-docker-images ``` @@ -36,9 +36,13 @@ clear-docker-images ## Flags -`--dry-run` : image cleanup will not be triggered -`--force` : should docker force image removal (it may create orphan images) -`-h, --help` : Print help information -`-r, --repository ` : filter by repository name -`-t, --tags ` : add tags exclusion -`-V, --version` : Print version information +```bash + -d, --date filter by repository name (ISO 8601) [default: $NOW - 2 days] + --dry-run image cleanup will not be triggered + --force should docker force image removal (it may create orphan images) + -h, --help Print help information + -r, --repository filter by repository name + -t, --tags add tags exclusion Example: -t 1.1.0 -t release + -v, --verbose add more logs + -V, --version Print version information +```