1
0
mirror of https://github.com/frebib/dotfiles.git synced 2024-06-14 12:57:23 +00:00

aliases: docker compose is a docker subcommand

compose v2 does away with the docker-compose binary and provides 'docker
compose' directly.

Signed-off-by: Joe Groocock <me@frebib.net>
This commit is contained in:
Joe Groocock 2021-10-10 09:25:50 +00:00
parent e25953d913
commit 3158db0946
Signed by: frebib
GPG Key ID: E0B16BEACFBB6A86

View File

@ -204,6 +204,7 @@ alias dst='docker stop'
alias drst='docker restart' alias drst='docker restart'
alias dnet='docker network' alias dnet='docker network'
alias dvol='docker volume' alias dvol='docker volume'
alias dc='docker compose'
alias dlg='docker logs --tail=1000 -f' alias dlg='docker logs --tail=1000 -f'
alias dalpine='docker run -ti --rm spritsail/alpine /bin/sh' alias dalpine='docker run -ti --rm spritsail/alpine /bin/sh'
alias drm-stopped='docker container prune' alias drm-stopped='docker container prune'
@ -279,7 +280,6 @@ do_dsh() {
docker "${docker_args[@]}" "$host" "${prog[@]}" docker "${docker_args[@]}" "$host" "${prog[@]}"
} }
alias dc='docker-compose'
alias dm='docker-machine' alias dm='docker-machine'
dmc() { eval "$(docker-machine env "$1")"; } dmc() { eval "$(docker-machine env "$1")"; }