Display unpublished ports in 'fig ps'
This commit is contained in:
parent
2d98071e55
commit
5f5fbb3ea4
1 changed files with 2 additions and 0 deletions
|
|
@ -70,6 +70,8 @@ class Container(object):
|
|||
for private, public in list(self.dictionary['NetworkSettings']['Ports'].items()):
|
||||
if public:
|
||||
ports.append('%s->%s' % (public[0]['HostPort'], private))
|
||||
else:
|
||||
ports.append(private)
|
||||
return ', '.join(ports)
|
||||
|
||||
@property
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue