Skip to content

Instantly share code, notes, and snippets.

@shaneparsons
Last active June 17, 2022 13:54
Show Gist options
  • Save shaneparsons/c90d22cd1398399e733ef8dc3cf7fd4a to your computer and use it in GitHub Desktop.
Save shaneparsons/c90d22cd1398399e733ef8dc3cf7fd4a to your computer and use it in GitHub Desktop.
Misc aliases for docker / docker-compose
alias d="docker"
alias dc="docker-compose"
alias dcb="docker-compose build"
alias dcd="docker-compose down --remove-orphans"
alias dce="docker-compose exec"
alias dcei="docker-compose exec -it"
alias dcr="docker-compose run"
alias dcrr="docker-compose run --rm"
alias dcrmv="docker-compose rm -f -v"
alias dcrs="docker-compose restart"
alias dcs="docker-compose stop"
alias dcup="docker-compose up"
alias dcupb="docker-compose up --build"
alias dcupbf="docker-compose up --build --force-recreate --no-deps"
alias dcupd="docker-compose up -d"
alias dcupdb="docker-compose up -d --build"
alias dcupdbf="docker-compose up -d --build --force-recreate --no-deps"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment