Skip to content

Instantly share code, notes, and snippets.

@tomasbarrios
Last active May 26, 2021 02:20
Show Gist options
  • Save tomasbarrios/122ceec4aa66cda0517601610fc73ae7 to your computer and use it in GitHub Desktop.
Save tomasbarrios/122ceec4aa66cda0517601610fc73ae7 to your computer and use it in GitHub Desktop.
Docker aliases
# 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