Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker public ip #11

Open
sese opened this issue Feb 13, 2018 · 0 comments
Open

docker public ip #11

sese opened this issue Feb 13, 2018 · 0 comments

Comments

@sese
Copy link

sese commented Feb 13, 2018

You should consider also the new sintax to retrieve the public IP.

$ docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $INSTANCE_ID

I use Docker version 17.12.0-ce and the old method is not working anymore, returns null

$ docker inspect --format '{{ .NetworkSettings.IPAddress }}' $INSTANCE_ID

Please check Docker Docs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant