From 32ddd0d9a7209275d622693c7e63903de41a892a Mon Sep 17 00:00:00 2001 From: yanhuan <53329052+yanhuan0802@users.noreply.github.com> Date: Wed, 29 Jun 2022 16:00:21 +0800 Subject: [PATCH] crictl: add page (#8152) --- pages/common/crictl.md | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 pages/common/crictl.md diff --git a/pages/common/crictl.md b/pages/common/crictl.md new file mode 100644 index 000000000..44bb958bd --- /dev/null +++ b/pages/common/crictl.md @@ -0,0 +1,36 @@ +# crictl + +> Command-line for CRI-compatible container runtimes. +> More information: . + +- 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 ...}}`