1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-05 21:26:02 +02:00

crictl: add page (#8152)

This commit is contained in:
yanhuan 2022-06-29 16:00:21 +08:00 committed by GitHub
parent f5348d25a4
commit 32ddd0d9a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

36
pages/common/crictl.md Normal file
View file

@ -0,0 +1,36 @@
# crictl
> Command-line for CRI-compatible container runtimes.
> More information: <https://github.com/kubernetes-sigs/cri-tools/blob/master/docs/crictl.md>.
- List all kubernetes pods (Ready and NotReady):
`crictl pods`
- List all containers (Running and Exited):
`crictl ps --all`
- List all images:
`crictl images`
- Print information about specific containers:
`crictl inspect {{container_id1 container_id2 ...}}`
- Open a specific shell inside a running container:
`crictl exec -it {{container_id}} {{sh}}`
- Pull a specific image from a registry:
`crictl pull {{image:tag}}`
- Print and [f]ollow logs of a specific container:
`crictl logs -f {{container_id}}`
- Remove one or more images:
`crictl rmi {{image_id1 image_id2 ...}}`