Docker Community Forums

Share and learn in the Docker community.

PublicPort via Remote API

docker

(Mkwalter) #1

How can I get the publicport from a running container by using the remote api? The information does not seem to be available in list or inspect containers. On creation of the container I allowing Docker to set the publicport randomly due to the large number of containers being spun up.

Thanks much for the thoughts.