Created
September 5, 2016 09:45
-
-
Save RobertKielty/73a3fc96c2a9a99d93edcc284bdcca51 to your computer and use it in GitHub Desktop.
Docker Aliases
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Launch /bin/bash interactively on your only running container | |
# H.B.D (assumptions) | |
# 1. You have one and only one container running | |
# 2. /bin/bash is present in your built container | |
# TODO Make robust enough to handle multiple containers | |
alias dbash='docker exec -it $(docker ps --format "{{.Names}}") /bin/bash' | |
alias dps='docker ps' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment