You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
6348dd5bc7c2 ubuntu:14.04 /usr/bin/bash 8 seconds ago Up 8 seconds 0.0.0.0:49153->80/udp, 0.0.0.0:49159->80/tcp expose_ports
In ipython
In [1]: docker_client.port('6348dd5bc7c2', 80)
Out[1]: [{u'HostIp': u'0.0.0.0', u'HostPort': u'49153'}]
The reason seems to lie in /docker/api/container.py, line 208-210
Instead of basically only accepting a port number for private_port and trying for udp and tcp exposed ports, I'd suggest that the method rather accepts an explicit private_port input like 1234/tcp.