Docker Community Forums

Share and learn in the Docker community.

Use API to get external DNS name?

dockercloud

(Eric Pugh) #1

Is there a way to get the external DNS port number? I see that I can get a property called public_dns, but it doesn’t have a port number. I was hoping to programatially query DockerCloud and get what port an service was published to, versus always having to hard code it.