2023-06-15 11:16:25 +02:00
|
|
|
# If the completion file doesn't exist yet, we need to autoload it and
|
|
|
|
# bind it to `docker`. Otherwise, compinit will have already done that.
|
|
|
|
if [[ ! -f "$ZSH_CACHE_DIR/completions/_docker" ]]; then
|
|
|
|
typeset -g -A _comps
|
|
|
|
autoload -Uz _docker
|
|
|
|
_comps[docker]=_docker
|
|
|
|
fi
|
|
|
|
|
|
|
|
docker completion zsh >| "$ZSH_CACHE_DIR/completions/_docker" &|
|
|
|
|
|
2022-04-12 21:52:41 +02:00
|
|
|
alias dbl='docker build'
|
|
|
|
alias dcin='docker container inspect'
|
2022-04-13 15:05:55 +02:00
|
|
|
alias dcls='docker container ls'
|
|
|
|
alias dclsa='docker container ls -a'
|
2022-04-12 21:52:41 +02:00
|
|
|
alias dib='docker image build'
|
|
|
|
alias dii='docker image inspect'
|
|
|
|
alias dils='docker image ls'
|
2022-06-06 15:37:42 +02:00
|
|
|
alias dipu='docker image push'
|
2022-04-12 21:52:41 +02:00
|
|
|
alias dirm='docker image rm'
|
|
|
|
alias dit='docker image tag'
|
2022-11-15 20:05:13 +01:00
|
|
|
alias dlo='docker container logs'
|
2022-04-12 21:52:41 +02:00
|
|
|
alias dnc='docker network create'
|
|
|
|
alias dncn='docker network connect'
|
|
|
|
alias dndcn='docker network disconnect'
|
|
|
|
alias dni='docker network inspect'
|
|
|
|
alias dnls='docker network ls'
|
|
|
|
alias dnrm='docker network rm'
|
2022-11-15 20:05:13 +01:00
|
|
|
alias dpo='docker container port'
|
|
|
|
alias dpu='docker pull'
|
|
|
|
alias dr='docker container run'
|
|
|
|
alias drit='docker container run -it'
|
|
|
|
alias drm='docker container rm'
|
|
|
|
alias 'drm!'='docker container rm -f'
|
|
|
|
alias dst='docker container start'
|
2022-12-15 11:47:10 +01:00
|
|
|
alias drs='docker container restart'
|
2022-11-15 20:05:33 +01:00
|
|
|
alias dsta='docker stop $(docker ps -q)'
|
2022-11-15 20:05:13 +01:00
|
|
|
alias dstp='docker container stop'
|
|
|
|
alias dtop='docker top'
|
2022-04-12 21:52:41 +02:00
|
|
|
alias dvi='docker volume inspect'
|
|
|
|
alias dvls='docker volume ls'
|
|
|
|
alias dvprune='docker volume prune'
|
2022-11-15 20:05:13 +01:00
|
|
|
alias dxc='docker container exec'
|
|
|
|
alias dxcit='docker container exec -it'
|