Skip to content

Commit 4465ba0

Browse files
committed
[zh] Sync web page for crictl
This is part of the work in the following umbrella issue: [zh] Umbrella issue: pages out of sync in tasks section CRICTL (L) content/zh/docs/tasks/debug-application-cluster/crictl.md
1 parent ae0600d commit 4465ba0

File tree

1 file changed

+121
-0
lines changed
  • content/zh/docs/tasks/debug-application-cluster

1 file changed

+121
-0
lines changed

content/zh/docs/tasks/debug-application-cluster/crictl.md

Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,3 +454,124 @@ for more information.
454454
-->
455455
更多信息请参考 [kubernetes-sigs/cri-tools](https://github.com/kubernetes-sigs/cri-tools)
456456

457+
<!--
458+
## Mapping from docker cli to crictl
459+
-->
460+
## Docker CLI 和 crictl 的映射
461+
462+
<!--
463+
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.
464+
-->
465+
以下的映射表格只适用于 Docker CLI v1.40 和 crictl v1.19.0 版本。
466+
请注意该表格并不详尽。例如,其中不包含 Docker CLI 的实验性命令。
467+
468+
<!--
469+
{{< note >}}
470+
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.
471+
{{< /note >}}
472+
-->
473+
{{< note >}}
474+
尽管有些命令的输出缺少了一些数据列,CRICTL 的输出格式与 Docker CLI 是类似的。
475+
如果你的脚本程序需要解析命令的输出,请确认检查该特定命令的输出。
476+
{{< /note >}}
477+
478+
<!--
479+
### Retrieve Debugging Information
480+
481+
{{< table caption="mapping from docker cli to crictl - retrieve debugging information" >}}
482+
-->
483+
### 获取调试信息
484+
485+
{{< table caption="Docker CLI 和 crictl 的映射 - 获取调试信息" >}}
486+
<!--
487+
docker cli | crictl | Description | Unsupported Features
488+
-- | -- | -- | --
489+
`attach` | `attach` | Attach to a running container | `--detach-keys`, `--sig-proxy`
490+
`exec` | `exec` | Run a command in a running container | `--privileged`, `--user`, `--detach-keys`
491+
`images` | `images` | List images |  
492+
`info` | `info` | Display system-wide information |  
493+
`inspect` | `inspect`, `inspecti` | Return low-level information on a container, image or task |  
494+
`logs` | `logs` | Fetch the logs of a container | `--details`
495+
`ps` | `ps` | List containers |  
496+
`stats` | `stats` | Display a live stream of container(s) resource usage statistics | Column: NET/BLOCK I/O, PIDs
497+
`version` | `version` | Show the runtime (Docker, ContainerD, or others) version information |  
498+
{{< /table >}}
499+
-->
500+
docker cli | crictl | 描述 | 不支持的功能
501+
-- | -- | -- | --
502+
`attach` | `attach` | 连接到一个运行中的容器 | `--detach-keys`, `--sig-proxy`
503+
`exec` | `exec` | 在运行中的容器里运行一个命令 | `--privileged`, `--user`, `--detach-keys`
504+
`images` | `images` | 列举镜像 |  
505+
`info` | `info` | 显示系统级的信息 |  
506+
`inspect` | `inspect`, `inspecti` | 返回容器、镜像或者任务的详细信息 |  
507+
`logs` | `logs` | 获取容器的日志 | `--details`
508+
`ps` | `ps` | 列举容器 |  
509+
`stats` | `stats` | 实时显示容器的资源使用统计信息 | 列:NET/BLOCK I/O, PIDs
510+
`version` | `version` | 显示运行时(Docker、ContainerD、或者其他) 的版本信息 |  
511+
{{< /table >}}
512+
513+
<!--
514+
### Perform Changes
515+
516+
{{< table caption="mapping from docker cli to crictl - perform changes" >}}
517+
-->
518+
### 进行改动
519+
520+
{{< table caption="Docker CLI 和 crictl 的映射 - 进行改动" >}}
521+
<!--
522+
docker cli | crictl | Description | Unsupported Features
523+
-- | -- | -- | --
524+
`create` | `create` | Create a new container |  
525+
`kill` | `stop` (timeout = 0) | Kill one or more running container | `--signal`
526+
`pull` | `pull` | Pull an image or a repository from a registry | `--all-tags`, `--disable-content-trust`
527+
`rm` | `rm` | Remove one or more containers |  
528+
`rmi` | `rmi` | Remove one or more images |  
529+
`run` | `run` | Run a command in a new container |  
530+
`start` | `start` | Start one or more stopped containers | `--detach-keys`
531+
`stop` | `stop` | Stop one or more running containers |  
532+
`update` | `update` | Update configuration of one or more containers | `--restart`, `--blkio-weight` and some other resource limit not supported by CRI.
533+
{{< /table >}}
534+
-->
535+
docker cli | crictl | 描述 | 不支持的功能
536+
-- | -- | -- | --
537+
`create` | `create` | 创建一个新的容器 |  
538+
`kill` | `stop` (timeout=0) | 杀死一个或多个正在运行的容器 | `--signal`
539+
`pull` | `pull` | 从镜像仓库拉取镜像或者代码仓库 | `--all-tags`, `--disable-content-trust`
540+
`rm` | `rm` | 移除一个或多个容器 |  
541+
`rmi` | `rmi` | 移除一个或多个镜像 |  
542+
`run` | `run` | 在新容器里运行一个命令 |  
543+
`start` | `start` | 启动一个或多个停止的容器 | `--detach-keys`
544+
`stop` | `stop` | 停止一个或多个正运行的容器 |  
545+
`update` | `update` | 更新一个或多个容器的配置 | CRI 不支持 `--restart``--blkio-weight` 以及一些其他的资源限制选项。
546+
{{< /table >}}
547+
548+
<!--
549+
### Supported only in crictl
550+
551+
{{< table caption="mapping from docker cli to crictl - supported only in crictl" >}}
552+
-->
553+
### 仅 crictl 支持
554+
555+
{{< table caption="Docker CLI 和 crictl 的映射 - 仅 crictl 支持" >}}
556+
<!--
557+
crictl | Description
558+
-- | --
559+
`imagefsinfo` | Return image filesystem info
560+
`inspectp` | Display the status of one or more pods
561+
`port-forward` | Forward local port to a pod
562+
`pods` | List pods
563+
`runp` | Run a new pod
564+
`rmp` | Remove one or more pods
565+
`stopp` | Stop one or more running pods
566+
{{< /table >}}
567+
-->
568+
crictl | 描述
569+
-- | --
570+
`imagefsinfo` | 返回镜像的文件系统信息
571+
`inspectp` | 显示一个或多个 Pod 的状态
572+
`port-forward` | 转发本地端口到 Pod
573+
`pods` | 列举 Pod
574+
`runp` | 运行一个新的 Pod
575+
`rmp` | 移除一个或多个 Pod
576+
`stopp` | 停止一个或多个正运行的 Pod
577+
{{< /table >}}

0 commit comments

Comments
 (0)