Skip to content

Instantly share code, notes, and snippets.

@elmariofredo
Last active October 6, 2016 10:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elmariofredo/9758c103d59cf97f6b7fd81f26b19d36 to your computer and use it in GitHub Desktop.
Save elmariofredo/9758c103d59cf97f6b7fd81f26b19d36 to your computer and use it in GitHub Desktop.
Docker bash onliners
# Get using dockek compose name and port for each service running
docker-compose ps | tail -n +3 | sed "s/.*_\([^_]*\)_.*0.0.0.0:\([^-]*\)->\([^/]*\).*/service: \1 Port: \3 PublicPort: \2/g"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment