Last active
April 6, 2018 13:07
-
-
Save daliborgogic/5cc7c6304f4dfa109df0728cf4c4405e to your computer and use it in GitHub Desktop.
bash docker alias
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
# List containers | |
alias dps='docker ps' | |
# Fetch the logs of a container | |
dl() { | |
docker logs $1 -f | |
} | |
# Run a command in a running container | |
de() { | |
docker exec -i -t $1 /bin/sh | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment