Skip to content

Commit e0b2e70

Browse files
authored
Merge pull request #28707 from MayorFaj/docs/28702-pod-ps-clarify
docs: clarify podman pod ps default output
2 parents 5baa31f + 8ae6f02 commit e0b2e70

1 file changed

Lines changed: 10 additions & 21 deletions

File tree

docs/source/markdown/podman-pod-ps.1.md.in

Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ podman\-pod\-ps - Print out information about pods
77
**podman pod ps** [*options*]
88

99
## DESCRIPTION
10-
**podman pod ps** lists the pods on the system.
10+
**podman pod ps** lists all pods on the system.
1111
By default it lists:
1212

1313
* pod ID
@@ -95,68 +95,68 @@ Default: created
9595

9696
## EXAMPLES
9797

98-
List all running pods.
98+
List all pods.
9999
```
100100
$ podman pod ps
101101
POD ID NAME STATUS CREATED INFRA ID # OF CONTAINERS
102102
00dfd6fa02c0 jolly_goldstine Running 31 hours ago ba465ab0a3a4 1
103103
f4df8692e116 nifty_torvalds Created 10 minutes ago 331693bff40a 2
104104
```
105105

106-
List all running pods along with container names within the pods.
106+
List all pods along with container names within the pods.
107107
```
108108
$ podman pod ps --ctr-names
109109
POD ID NAME STATUS CREATED INFRA ID NAMES
110110
00dfd6fa02c0 jolly_goldstine Running 31 hours ago ba465ab0a3a4 loving_archimedes
111111
f4df8692e116 nifty_torvalds Created 10 minutes ago 331693bff40a thirsty_hawking,wizardly_golick
112112
```
113113

114-
List all running pods along with status, names and ids.
114+
List all pods along with status, names and ids.
115115
```
116116
$ podman pod ps --ctr-status --ctr-names --ctr-ids
117117
POD ID NAME STATUS CREATED INFRA ID IDS NAMES STATUS
118118
00dfd6fa02c0 jolly_goldstine Running 31 hours ago ba465ab0a3a4 ba465ab0a3a4 loving_archimedes running
119119
f4df8692e116 nifty_torvalds Created 10 minutes ago 331693bff40a 331693bff40a,8e428daeb89e thirsty_hawking,wizardly_golick configured,configured
120120
```
121121

122-
List all running pods and print ID, Container Names, and cgroups.
122+
List all pods and print ID, Container Names, and cgroups.
123123
```
124124
$ podman pod ps --format "{{.ID}} {{.ContainerNames}} {{.Cgroup}}"
125125
00dfd6fa02c0 loving_archimedes /libpod_parent
126126
f4df8692e116 thirsty_hawking,wizardly_golick /libpod_parent
127127
```
128128

129-
List all running pods with two containers sorted by pod ID.
129+
List all pods with two containers sorted by pod ID.
130130
```
131131
$ podman pod ps --sort id --filter ctr-number=2
132132
POD ID NAME STATUS CREATED INFRA ID # OF CONTAINERS
133133
f4df8692e116 nifty_torvalds Created 10 minutes ago 331693bff40a 2
134134
```
135135

136-
List all running pods with their container ids.
136+
List all pods with their container ids.
137137
```
138138
$ podman pod ps --ctr-ids
139139
POD ID NAME STATUS CREATED INFRA ID IDS
140140
00dfd6fa02c0 jolly_goldstine Running 31 hours ago ba465ab0a3a4 ba465ab0a3a4
141141
f4df8692e116 nifty_torvalds Created 10 minutes ago 331693bff40a 331693bff40a,8e428daeb89e
142142
```
143143

144-
List all running pods with container ids without truncating IDs.
144+
List all pods with container ids without truncating IDs.
145145
```
146146
$ podman pod ps --no-trunc --ctr-ids
147147
POD ID NAME STATUS CREATED INFRA ID IDS
148148
00dfd6fa02c0a2daaedfdf8fcecd06f22ad114d46d167d71777224735f701866 jolly_goldstine Running 31 hours ago ba465ab0a3a4e15e3539a1e79c32d1213a02b0989371e274f98e0f1ae9de7050 ba465ab0a3a4e15e3539a1e79c32d1213a02b0989371e274f98e0f1ae9de7050
149149
f4df8692e116a3e6d1d62572644ed36ca475d933808cc3c93435c45aa139314b nifty_torvalds Created 10 minutes ago 331693bff40a926b6d52b184e116afd15497610c378d5d4c42945dd6e33b75b0 331693bff40a926b6d52b184e116afd15497610c378d5d4c42945dd6e33b75b0,8e428daeb89e69b71e7916a13accfb87d122889442b5c05c2d99cf94a3230e9d
150150
```
151151

152-
List all running pods with container names.
152+
List all pods with container names.
153153
```
154154
$ podman pod ps --ctr-names
155155
POD ID NAME STATUS CREATED INFRA ID NAMES
156156
314f4da82d74 hi Created 17 hours ago a9f2d2165675 jovial_jackson,hopeful_archimedes,vibrant_ptolemy,heuristic_jennings,keen_raman,hopeful_newton,mystifying_bose,silly_lalande,serene_lichterman ...
157157
```
158158

159-
List all running pods with container IDs
159+
List pods containing the specified container ID
160160
```
161161
$ podman pod ps --filter ctr-ids=aceb3b775797
162162
POD ID NAME STATUS CREATED INFRA ID # OF CONTAINERS
@@ -178,17 +178,6 @@ POD ID NAME STATUS CREATED INFRA ID # OF CONTAIN
178178
1e3424d7e9c0 db-cluster Degraded 4 minutes ago d6650a490b69 3
179179
```
180180

181-
List all current pods
182-
```
183-
$ podman pod ps
184-
POD ID NAME STATUS CREATED INFRA ID # OF CONTAINERS
185-
95938982244d nettest Running 4 minutes ago a28d133e8c63 3
186-
deee8956522e utility Running 4 minutes ago 6b730e3ac334 3
187-
06c3a107763a maintenance Degraded 4 minutes ago 67e500cbb678 3
188-
1e3424d7e9c0 db-cluster Degraded 4 minutes ago d6650a490b69 3
189-
952330c7cff0 web-app Running 4 minutes ago b0f247c49669 3
190-
```
191-
192181
Filter pod by ID
193182
```
194183
$ podman pod ps --filter id=95938982244d

0 commit comments

Comments
 (0)