We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f2f714 commit b8c0c85Copy full SHA for b8c0c85
README.md
@@ -35,9 +35,12 @@ with PodmanClient(base_url=uri) as client:
35
36
# find all containers
37
for container in client.containers.list():
38
- first_name = container['Names'][0]
39
- container = client.containers.get(first_name)
+ # After a list call you would probably want to reload the container
+ # to get the information about the variables such as status.
40
+ # Note that list() ignores the sparse option and assumes True by default.
41
+ container.reload()
42
print(container, container.id, "\n")
43
+ print(container, container.status, "\n")
44
45
# available fields
46
print(sorted(container.attrs.keys()))
0 commit comments