Skip to content

Commit b0e9715

Browse files
lucmingliuming54
authored andcommitted
docs(crictl): add detailed explanations for ps command output columns
1 parent 07cb00e commit b0e9715

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

docs/crictl.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -433,8 +433,17 @@ List containers and check the container is in Created state:
433433

434434
```sh
435435
$ crictl ps -a
436-
CONTAINER ID IMAGE CREATED STATE NAME ATTEMPT
437-
3e025dd50a72d busybox 32 seconds ago Created busybox 0
436+
CONTAINER IMAGE CREATED STATE NAME ATTEMPT POD ID POD
437+
c5d18c6566fa3 2bd29714875d9 7 hours ago Running nginx 17 f86f7fefb2d60 nginx-demo
438+
# columns are defined as follows:
439+
# CONTAINER ID: short ID of the container
440+
# IMAGE: image ID of the container
441+
# CREATED: time when the container was created
442+
# STATE: state of the container, e.g. created, running, exited, etc.
443+
# NAME: name of the container
444+
# ATTEMPT: container restart count
445+
# POD ID: sandbox container ID of the pod
446+
# POD: name of the pod
438447
```
439448

440449
### Start container

0 commit comments

Comments
 (0)