docker-compose.plugin.zsh 615 B

123456789101112131415161718192021222324
  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 dcupdb="$dccmd up -d --build"
  15. alias dcdn="$dccmd down"
  16. alias dcl="$dccmd logs"
  17. alias dclf="$dccmd logs -f"
  18. alias dcpull="$dccmd pull"
  19. alias dcstart="$dccmd start"
  20. alias dck="$dccmd kill"
  21. unset dccmd