zsh-shell-init/alias.d/docker.sh

18 lines
470 B
Bash
Raw Normal View History

# shellcheck shell=ksh
# docker 快捷指令
# alias docker='_ docker'
alias dc='docker container'
alias di='docker image'
alias dcl='dc logs -f -n 100 '
alias dcrun='docker exec -it '
alias dtmp='docker run -it --rm'
alias dp='docker compose'
alias dpup='dp up -d --force-recreate'
alias ds='docker ps -a --format "table{{.Names}}\t{{.Status}}"'
alias dsp='docker ps -a --format "table{{.Names}}\t{{.Status}}\t{{.Ports}}"'
alias dps='dp ps -a'
alias dcp='docker cp'