Skip to content

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
Signed-off-by: Qiutong Song <[email protected]>
  • Loading branch information
qiutongs committed Dec 8, 2020
1 parent cb55041 commit 3e8e1d9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
2 changes: 1 addition & 1 deletion content/en/blog/_posts/2020-12-02-dockershim-faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ runtime where possible.

Another thing to look out for is anything expecting to run for system maintenance
or nested inside a container when building images will no longer work. For the
former, you can use the [`crictl`][cr] tool as a drop-in replacement and for the
former, you can use the [`crictl`][cr] tool as a drop-in replacement (see [mapping from docker cli to crictl](https://kubernetes.io/docs/tasks/debug-application-cluster/crictl/#mapping-from-docker-cli-to-crictl)) and for the
latter you can use newer container build options like [img], [buildah], or
[kaniko] that don’t require Docker.

Expand Down
21 changes: 13 additions & 8 deletions content/en/docs/tasks/debug-application-cluster/crictl.md
Original file line number Diff line number Diff line change
Expand Up @@ -364,35 +364,39 @@ Warn: the output format of CRICTL is similar to Docker CLI, despite some missing

### Retrieve Debugging Information


{{< table caption="mapping from docker cli to crictl - retrieve debugging information" >}}
docker cli | crictl | Description | Unsupported Features
-- | -- | -- | --
attach | attach | Attach to a running container | --detach-keys, --sig-proxy
exec | exec | Run a command in a running container | --privileged, --user, --detach-keys
attach | attach | Attach to a running container | `--detach-keys`, `--sig-proxy`
exec | exec | Run a command in a running container | `--privileged`, `--user`, `--detach-keys`
images | images | List images |  
info | info | Display system-wide information |  
inspect | inspectinspecti | Return low-level information on a container, image or task |  
logs | logs | Fetch the logs of a container | --details
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 |  
{{< /table >}}

### Perform Changes

{{< table caption="mapping from docker cli to crictl - perform changes" >}}
docker cli | crictl | Description | Unsupported Features
-- | -- | -- | --
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
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
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.
update | update | Update configuration of one or more containers | `--restart`, `--blkio-weight` and some other resource limit not supported by CRI.
{{< /table >}}

### Supported only in crictl

{{< table caption="mapping from docker cli to crictl - supported only in crictl" >}}
crictl | Description
-- | --
imagefsinfo | Return image filesystem info
Expand All @@ -402,3 +406,4 @@ pods | List pods
runp | Run a new pod
rmp | Remove one or more pods
stopp | Stop one or more running pods
{{< /table >}}

0 comments on commit 3e8e1d9

Please sign in to comment.