Last active
May 26, 2021 02:20
-
-
Save tomasbarrios/122ceec4aa66cda0517601610fc73ae7 to your computer and use it in GitHub Desktop.
Docker aliases
This file contains 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
# Get container IP | |
alias dip="docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}'" | |
# List containers | |
alias dps='docker ps --format "table {{.Names}}\t{{.Status}}\t{{.Ports}}\t{{.Networks}}"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment