Last active
October 6, 2016 10:59
-
-
Save devopsmariocom/9758c103d59cf97f6b7fd81f26b19d36 to your computer and use it in GitHub Desktop.
Docker bash onliners
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
# 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