← Back to list

Mapping from docker CLI to crictl

nb: this page was removed from the Kubernetes website.

Mahinsha Nazeer · 2024-08-07 03:18 · 0 claps · 1.8 min read
#crictl #docker #kubernetes
Open on Medium ↗
Wiki topics: ☁️ · DevOps & Cloud

Mapping from docker CLI to crictl

[embed]Mapping from dockercli to crictl Note:This page is being directed to https://v1-24.docs.kubernetes.io/docs/reference/tools/map-crictl-dockercli/ because…kubernetes.io

nb: this page was removed from the Kubernetes website.

Mapped Commands:
~~~~~~~~~~~~~~~~~~
+---------+--------------------+----------------------------------------------------------------------+-------------------------------------------------------------------------------+--+
| images  | images             | List images                                                          |                                                                               |  |
+---------+--------------------+----------------------------------------------------------------------+-------------------------------------------------------------------------------+--+
| info    | info               | Display system-wide information                                      |                                                                               |  |
+---------+--------------------+----------------------------------------------------------------------+-------------------------------------------------------------------------------+--+
| inspect | inspect, inspecti  | Return low-level information on a container, image or task           |                                                                               |  |
+---------+--------------------+----------------------------------------------------------------------+-------------------------------------------------------------------------------+--+
| logs    | logs               | Fetch the logs of a container                                        | --details                                                                     |  |
+---------+--------------------+----------------------------------------------------------------------+-------------------------------------------------------------------------------+--+
| ps      | ps                 | List containers                                                      |                                                                               |  |
+---------+--------------------+----------------------------------------------------------------------+-------------------------------------------------------------------------------+--+
| stats   | stats              | Display a live stream of container(s) resource usage statistics      | Column: NET/BLOCK I/O, PIDs                                                   |  |
+---------+--------------------+----------------------------------------------------------------------+-------------------------------------------------------------------------------+--+
| version | version            | Show the runtime (Docker, ContainerD, or others) version information |                                                                               |  |
+---------+--------------------+----------------------------------------------------------------------+-------------------------------------------------------------------------------+--+
| create  | create             | Create a new container                                               |                                                                               |  |
+---------+--------------------+----------------------------------------------------------------------+-------------------------------------------------------------------------------+--+
| kill    | stop (timeout = 0) | Kill one or more running container                                   | --signal                                                                      |  |
+---------+--------------------+----------------------------------------------------------------------+-------------------------------------------------------------------------------+--+
| pull    | pull               | Pull an image or a repository from a registry                        | --all-tags, --disable-content-trust                                           |  |
+---------+--------------------+----------------------------------------------------------------------+-------------------------------------------------------------------------------+--+
| rm      | rm                 | Remove one or more containers                                        |                                                                               |  |
+---------+--------------------+----------------------------------------------------------------------+-------------------------------------------------------------------------------+--+
| rmi     | rmi                | Remove one or more images                                            |                                                                               |  |
+---------+--------------------+----------------------------------------------------------------------+-------------------------------------------------------------------------------+--+
| run     | run                | Run a command in a new container                                     |                                                                               |  |
+---------+--------------------+----------------------------------------------------------------------+-------------------------------------------------------------------------------+--+
| start   | start              | Start one or more stopped containers                                 | --detach-keys                                                                 |  |
+---------+--------------------+----------------------------------------------------------------------+-------------------------------------------------------------------------------+--+
| stop    | stop               | Stop one or more running containers                                  |                                                                               |  |
+---------+--------------------+----------------------------------------------------------------------+-------------------------------------------------------------------------------+--+
| update  | update             | Update configuration of one or more containers                       | --restart, --blkio-weight and some other resource limit not supported by CRI. |  |
+---------+--------------------+----------------------------------------------------------------------+-------------------------------------------------------------------------------+--+

CRICTL CLI:
~~~~~~~~~~~
+--------------+----------------------------------------+
| imagefsinfo  | Return image filesystem info           |
+--------------+----------------------------------------+
| inspectp     | Display the status of one or more pods |
+--------------+----------------------------------------+
| port-forward | Forward local port to a pod            |
+--------------+----------------------------------------+
| pods         | List pods                              |
+--------------+----------------------------------------+
| runp         | Run a new pod                          |
+--------------+----------------------------------------+
| rmp          | Remove one or more pods                |
+--------------+----------------------------------------+
| stopp        | Stop one or more running pods          |
+--------------+----------------------------------------+

메타데이터
post_id
74e1edb2c6ee
slug
mapping-from-docker-cli-to-crictl-74e1edb2c6ee
url
https://medium.com/@mahinshanazeer/mapping-from-docker-cli-to-crictl-74e1edb2c6ee
canonical_url
https://medium.com/@mahinshanazeer/mapping-from-docker-cli-to-crictl-74e1edb2c6ee
author_url
https://medium.com/@mahinshanazeer
status
ok
fetched_at
2026-07-23 05:11:44