Skip to content

docker public ip #11

@sese

Description

@sese

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions