Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/docker/docker-py
/ name
Method
name
docker/models/containers.py:29–34 ·
view source on GitHub ↗
The name of the container.
(self)
Source
from the content-addressed store, hash-verified
27
28
@property
29
def
name(self):
30
""
"
31
The name of the container.
32
""
"
33
if
self.attrs.get(
'Name'
) is not None:
34
return
self.attrs[
'Name'
].lstrip(
'/'
)
35
36
@property
37
def
image(self):
Callers
nothing calls this directly
Calls
1
get
Method · 0.45
Tested by
no test coverage detected