MCPcopy Index your code
hub / github.com/docker/docker-py / ports

Method ports

docker/models/containers.py:79–83  ·  view source on GitHub ↗

The ports that the container exposes as a dictionary.

(self)

Source from the content-addressed store, hash-verified

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 """

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected