The containers that are connected to the network, as a list of :py:class:`~docker.models.containers.Container` objects.
(self)
| 17 | |
| 18 | @property |
| 19 | def containers(self): |
| 20 | """ |
| 21 | The containers that are connected to the network, as a list of |
| 22 | :py:class:`~docker.models.containers.Container` objects. |
| 23 | """ |
| 24 | return [ |
| 25 | self.client.containers.get(cid) for cid in |
| 26 | (self.attrs.get('Containers') or {}).keys() |
| 27 | ] |
| 28 | |
| 29 | def connect(self, container, *args, **kwargs): |
| 30 | """ |