docker-compose.plugin.zsh 579 B

12345678910111213141516171819202122
  1. # support Compose v2 as docker CLI plugin
  2. (( ${+commands[docker-compose]} )) && dccmd='docker-compose' || dccmd='docker compose'
  3. alias dco="$dccmd"
  4. alias dcb="$dccmd build"
  5. alias dce="$dccmd exec"
  6. alias dcps="$dccmd ps"
  7. alias dcrestart="$dccmd restart"
  8. alias dcrm="$dccmd rm"
  9. alias dcr="$dccmd run"
  10. alias dcstop="$dccmd stop"
  11. alias dcup="$dccmd up"
  12. alias dcupb="$dccmd up --build"
  13. alias dcupd="$dccmd up -d"
  14. alias dcdn="$dccmd down"
  15. alias dcl="$dccmd logs"
  16. alias dclf="$dccmd logs -f"
  17. alias dcpull="$dccmd pull"
  18. alias dcstart="$dccmd start"
  19. alias dck="$dccmd kill"
  20. unset dccmd