The ports that the container exposes as a dictionary.
(self)
| 77 | |
| 78 | @property |
| 79 | def ports(self): |
| 80 | """ |
| 81 | The ports that the container exposes as a dictionary. |
| 82 | """ |
| 83 | return self.attrs.get('NetworkSettings', {}).get('Ports', {}) |
| 84 | |
| 85 | def attach(self, **kwargs): |
| 86 | """ |