Skip to content

Instantly share code, notes, and snippets.

@kjlape
Created October 7, 2015 16:33
Show Gist options
  • Select an option

  • Save kjlape/59a148b1d369e86997b3 to your computer and use it in GitHub Desktop.

Select an option

Save kjlape/59a148b1d369e86997b3 to your computer and use it in GitHub Desktop.
Find the port number of a docker compose instance.
docker-compose ps $1 | grep $1 | sed -E 's/.*:([0-9]+)->.*/\1/g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment