You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/docs/reference/tools/_index.md
+13-6Lines changed: 13 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,16 +12,17 @@ Kubernetes contains several tools to help you work with the Kubernetes system.
12
12
13
13
<!-- body -->
14
14
15
-
## Minikube
15
+
## crictl
16
16
17
-
[`minikube`](https://minikube.sigs.k8s.io/docs/) is a tool that
18
-
runs a single-node Kubernetes cluster locally on your workstation for
19
-
development and testing purposes.
17
+
[`crictl`](https://github.com/kubernetes-sigs/cri-tools) is a command-line
18
+
interface for inspecting and debugging {{<glossary_tooltip term_id="cri" text="CRI">}}-compatible
19
+
container runtimes.
20
20
21
21
## Dashboard
22
22
23
23
[`Dashboard`](/docs/tasks/access-application-cluster/web-ui-dashboard/), the web-based user interface of Kubernetes, allows you to deploy containerized applications
24
-
to a Kubernetes cluster, troubleshoot them, and manage the cluster and its resources itself.
24
+
to a Kubernetes cluster, troubleshoot them, and manage the cluster and its
25
+
resources itself.
25
26
26
27
## Helm
27
28
{{% thirdparty-content single="true" %}}
@@ -64,4 +65,10 @@ Kui lets you:
64
65
* Type in `kubectl` commands and see them execute, even sometimes faster than `kubectl` itself
65
66
* Query a {{< glossary_tooltip text="Job" term_id="job">}} and see its execution rendered
66
67
as a waterfall diagram
67
-
* Click through resources in your cluster using a tabbed UI
68
+
* Click through resources in your cluster using a tabbed UI
69
+
70
+
## Minikube
71
+
72
+
[`minikube`](https://minikube.sigs.k8s.io/docs/) is a tool that
73
+
runs a single-node Kubernetes cluster locally on your workstation for
This page provides a reference for mapping common commands for the `docker`
18
+
command-line tool into the equivalent commands for `crictl`.
19
+
20
+
## Mapping from docker CLI to crictl
21
+
22
+
The exact versions for the mapping table are for `docker` CLI v1.40 and `crictl`
23
+
v1.19.0. This list is not exhaustive. For example, it doesn't include
24
+
experimental `docker` CLI commands.
25
+
26
+
{{< note >}}
27
+
The output format of `crictl` is similar to `docker` CLI, despite some missing
28
+
columns for some CLI. Make sure to check output for the specific command if your
29
+
command output is being parsed programmatically.
30
+
{{< /note >}}
31
+
32
+
### Retrieve debugging information
33
+
34
+
{{< table caption="mapping from docker cli to crictl - retrieve debugging information" >}}
35
+
docker cli | crictl | Description | Unsupported Features
36
+
-- | -- | -- | --
37
+
`attach` | `attach` | Attach to a running container | `--detach-keys`, `--sig-proxy`
38
+
`exec` | `exec` | Run a command in a running container | `--privileged`, `--user`, `--detach-keys`
39
+
`images` | `images` | List images |
40
+
`info` | `info` | Display system-wide information |
41
+
`inspect` | `inspect`, `inspecti` | Return low-level information on a container, image or task |
42
+
`logs` | `logs` | Fetch the logs of a container | `--details`
43
+
`ps` | `ps` | List containers |
44
+
`stats` | `stats` | Display a live stream of container(s) resource usage statistics | Column: NET/BLOCK I/O, PIDs
45
+
`version` | `version` | Show the runtime (Docker, ContainerD, or others) version information |
46
+
{{< /table >}}
47
+
48
+
### Perform Changes
49
+
50
+
{{< table caption="mapping from docker cli to crictl - perform changes" >}}
51
+
docker cli | crictl | Description | Unsupported Features
52
+
-- | -- | -- | --
53
+
`create` | `create` | Create a new container |
54
+
`kill` | `stop` (timeout = 0) | Kill one or more running container | `--signal`
55
+
`pull` | `pull` | Pull an image or a repository from a registry | `--all-tags`, `--disable-content-trust`
56
+
`rm` | `rm` | Remove one or more containers |
57
+
`rmi` | `rmi` | Remove one or more images |
58
+
`run` | `run` | Run a command in a new container |
59
+
`start` | `start` | Start one or more stopped containers | `--detach-keys`
60
+
`stop` | `stop` | Stop one or more running containers |
61
+
`update` | `update` | Update configuration of one or more containers | `--restart`, `--blkio-weight` and some other resource limit not supported by CRI.
62
+
{{< /table >}}
63
+
64
+
### Supported only in crictl
65
+
66
+
{{< table caption="mapping from docker cli to crictl - supported only in crictl" >}}
67
+
crictl | Description
68
+
-- | --
69
+
`imagefsinfo` | Return image filesystem info
70
+
`inspectp` | Display the status of one or more pods
The following examples show some `crictl` commands and example output.
@@ -348,64 +354,9 @@ CONTAINER ID IMAGE CREATED STATE
348
354
3e025dd50a72d busybox About a minute ago Running busybox 0
349
355
```
350
356
357
+
## {{% heading "whatsnext" %}}
351
358
359
+
*[Learn more about `crictl`](https://github.com/kubernetes-sigs/cri-tools).
360
+
*[Map `docker` CLI commands to `crictl`](/reference/tools/map-crictl-dockercli/).
352
361
353
-
354
-
<!-- discussion -->
355
-
356
-
See [kubernetes-sigs/cri-tools](https://github.com/kubernetes-sigs/cri-tools)
357
-
for more information.
358
-
359
-
## Mapping from docker cli to crictl
360
-
361
-
The exact versions for below mapping table are for docker cli v1.40 and crictl v1.19.0. Please note that the list is not exhaustive. For example, it doesn't include experimental commands of docker cli.
362
-
363
-
{{< note >}}
364
-
The output format of CRICTL is similar to Docker CLI, despite some missing columns for some CLI. Make sure to check output for the specific command if your script output parsing.
365
-
{{< /note >}}
366
-
367
-
### Retrieve Debugging Information
368
-
369
-
{{< table caption="mapping from docker cli to crictl - retrieve debugging information" >}}
370
-
docker cli | crictl | Description | Unsupported Features
371
-
-- | -- | -- | --
372
-
`attach` | `attach` | Attach to a running container | `--detach-keys`, `--sig-proxy`
373
-
`exec` | `exec` | Run a command in a running container | `--privileged`, `--user`, `--detach-keys`
374
-
`images` | `images` | List images |
375
-
`info` | `info` | Display system-wide information |
376
-
`inspect` | `inspect`, `inspecti` | Return low-level information on a container, image or task |
377
-
`logs` | `logs` | Fetch the logs of a container | `--details`
378
-
`ps` | `ps` | List containers |
379
-
`stats` | `stats` | Display a live stream of container(s) resource usage statistics | Column: NET/BLOCK I/O, PIDs
380
-
`version` | `version` | Show the runtime (Docker, ContainerD, or others) version information |
381
-
{{< /table >}}
382
-
383
-
### Perform Changes
384
-
385
-
{{< table caption="mapping from docker cli to crictl - perform changes" >}}
386
-
docker cli | crictl | Description | Unsupported Features
387
-
-- | -- | -- | --
388
-
`create` | `create` | Create a new container |
389
-
`kill` | `stop` (timeout = 0) | Kill one or more running container | `--signal`
390
-
`pull` | `pull` | Pull an image or a repository from a registry | `--all-tags`, `--disable-content-trust`
391
-
`rm` | `rm` | Remove one or more containers |
392
-
`rmi` | `rmi` | Remove one or more images |
393
-
`run` | `run` | Run a command in a new container |
394
-
`start` | `start` | Start one or more stopped containers | `--detach-keys`
395
-
`stop` | `stop` | Stop one or more running containers |
396
-
`update` | `update` | Update configuration of one or more containers | `--restart`, `--blkio-weight` and some other resource limit not supported by CRI.
397
-
{{< /table >}}
398
-
399
-
### Supported only in crictl
400
-
401
-
{{< table caption="mapping from docker cli to crictl - supported only in crictl" >}}
402
-
crictl | Description
403
-
-- | --
404
-
`imagefsinfo` | Return image filesystem info
405
-
`inspectp` | Display the status of one or more pods
0 commit comments