mirror of https://github.com/docker/compose.git
Display unpublished ports in 'fig ps'
This commit is contained in:
parent
2d98071e55
commit
5f5fbb3ea4
|
@ -70,6 +70,8 @@ class Container(object):
|
||||||
for private, public in list(self.dictionary['NetworkSettings']['Ports'].items()):
|
for private, public in list(self.dictionary['NetworkSettings']['Ports'].items()):
|
||||||
if public:
|
if public:
|
||||||
ports.append('%s->%s' % (public[0]['HostPort'], private))
|
ports.append('%s->%s' % (public[0]['HostPort'], private))
|
||||||
|
else:
|
||||||
|
ports.append(private)
|
||||||
return ', '.join(ports)
|
return ', '.join(ports)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|
Loading…
Reference in New Issue