Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

docker list ip addresses

docker ps -q | xargs -n 1 docker inspect --format '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}} {{ .Name }}' | sed 's/ // /'
Source by gist.github.com #
 
PREVIOUS NEXT
Tagged: #docker #list #ip #addresses
ADD COMMENT
Topic
Name
2+1 =