diff options
| author | Alvin Crespo <alvin.crespo@gmail.com> | 2024-08-01 14:35:49 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-01 20:35:49 +0200 |
| commit | 0f752036988f7acc25c3ac87e1f6e268bb15e742 (patch) | |
| tree | a23686d58e0fa191b30d2e84c702092874d47d31 /plugins/docker | |
| parent | 432596e9918dd0fea65af8c1788a54130a4fca6e (diff) | |
| download | zsh-0f752036988f7acc25c3ac87e1f6e268bb15e742.tar.gz zsh-0f752036988f7acc25c3ac87e1f6e268bb15e742.tar.bz2 zsh-0f752036988f7acc25c3ac87e1f6e268bb15e742.zip | |
feat(docker): add image prune alias (#12520)
Co-authored-by: Carlo Sala <carlosalag@protonmail.com>
Diffstat (limited to 'plugins/docker')
| -rw-r--r-- | plugins/docker/README.md | 1 | ||||
| -rw-r--r-- | plugins/docker/docker.plugin.zsh | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/plugins/docker/README.md b/plugins/docker/README.md index 72ebbcb1e..8619125a2 100644 --- a/plugins/docker/README.md +++ b/plugins/docker/README.md @@ -51,6 +51,7 @@ zstyle ':omz:plugins:docker' legacy-completion yes | dii | `docker image inspect` | Display detailed information on one or more images | | dils | `docker image ls` | List docker images | | dipu | `docker image push` | Push an image or repository to a remote registry | +| dipru | `docker image prune -a` | Remove all images not referenced by any container | | dirm | `docker image rm` | Remove one or more images | | dit | `docker image tag` | Add a name and tag to a particular image | | dlo | `docker container logs` | Fetch the logs of a docker container | diff --git a/plugins/docker/docker.plugin.zsh b/plugins/docker/docker.plugin.zsh index 56dbc6b80..19269427e 100644 --- a/plugins/docker/docker.plugin.zsh +++ b/plugins/docker/docker.plugin.zsh @@ -6,6 +6,7 @@ alias dib='docker image build' alias dii='docker image inspect' alias dils='docker image ls' alias dipu='docker image push' +alias dipru='docker image prune -a' alias dirm='docker image rm' alias dit='docker image tag' alias dlo='docker container logs' |
