From 3914197aa2fba3ffe12a05f64379c85aa3952646 Mon Sep 17 00:00:00 2001 From: baltic-tea <97766478+baltic-tea@users.noreply.github.com> Date: Sun, 10 Nov 2024 16:44:16 +0300 Subject: [PATCH] feat(docker): add new aliases Co-authored-by: Matthew Adams --- plugins/docker/docker.plugin.zsh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plugins/docker/docker.plugin.zsh b/plugins/docker/docker.plugin.zsh index 96459a031..9f320d771 100644 --- a/plugins/docker/docker.plugin.zsh +++ b/plugins/docker/docker.plugin.zsh @@ -22,9 +22,16 @@ alias dpu='docker pull' alias dpsh='docker push' alias dr='docker container run' alias drit='docker container run -it' +alias dritbash='docker run -it --entrypoint /bin/bash' +alias dritp='docker container run -it -v $PWD:/pwd -w /pwd' +alias dritprm='docker container run --rm -it -v $PWD:/pwd -w /pwd' +alias dritsh='docker run -it --entrypoint /bin/sh' +alias dritshp='docker run -it --entrypoint /bin/sh -v $PWD:/pwd -w /pwd' alias dritrm='docker container run --rm -it' alias drm='docker container rm' alias 'drm!'='docker container rm -f' +alias 'drma!'='docker container ls -a -q | xargs docker container rm -f' +alias drp='docker container run -v $PWD:/pwd -w /pwd' alias dst='docker container start' alias drs='docker container restart' alias dsta='docker stop $(docker ps -q)'