Skip to content

Commit 4a3f2ef

Browse files
authored
Merge pull request #30198 from SergeyKanzhelev/dockershimUpdates
Find out what container runtime is used and mention private registries
2 parents 93ec17f + 4a6d4d5 commit 4a3f2ef

File tree

2 files changed

+62
-5
lines changed

2 files changed

+62
-5
lines changed

content/en/docs/tasks/administer-cluster/migrating-from-dockershim/check-if-dockershim-deprecation-affects-you.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Check whether Dockershim deprecation affects you
3-
content_type: task
3+
content_type: task
44
reviewers:
55
- SergeyKanzhelev
66
weight: 20
@@ -26,16 +26,21 @@ When alternative container runtime is used, executing Docker commands may either
2626
not work or yield unexpected output. This is how you can find whether you have a
2727
dependency on Docker:
2828

29-
1. Make sure no privileged Pods execute Docker commands.
30-
2. Check that scripts and apps running on nodes outside of Kubernetes
29+
1. Make sure no privileged Pods execute Docker commands (like `docker ps`),
30+
restart the Docker service (commands such as `systemctl restart docker.service`),
31+
or modify Docker-specific files such as `/etc/docker/daemon.json`.
32+
1. Check for any private registries or image mirror settings in the Docker
33+
configuration file (like `/etc/docker/daemon.json`). Those typically need to
34+
be reconfigured for another container runtime.
35+
1. Check that scripts and apps running on nodes outside of your Kubernetes
3136
infrastructure do not execute Docker commands. It might be:
3237
- SSH to nodes to troubleshoot;
3338
- Node startup scripts;
3439
- Monitoring and security agents installed on nodes directly.
35-
3. Third-party tools that perform above mentioned privileged operations. See
40+
1. Third-party tools that perform above mentioned privileged operations. See
3641
[Migrating telemetry and security agents from dockershim](/docs/tasks/administer-cluster/migrating-from-dockershim/migrating-telemetry-and-security-agents)
3742
for more information.
38-
4. Make sure there is no indirect dependencies on dockershim behavior.
43+
1. Make sure there is no indirect dependencies on dockershim behavior.
3944
This is an edge case and unlikely to affect your application. Some tooling may be configured
4045
to react to Docker-specific behaviors, for example, raise alert on specific metrics or search for
4146
a specific log message as part of troubleshooting instructions.
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
---
2+
title: Find Out What Container Runtime is Used on a Node
3+
content_type: task
4+
reviewers:
5+
- SergeyKanzhelev
6+
weight: 10
7+
---
8+
9+
<!-- overview -->
10+
11+
This page outlines steps to find out what [container runtime](/docs/setup/production-environment/container-runtimes/)
12+
the nodes in your cluster use.
13+
14+
Depending on the way you run your cluster, the container runtime for the nodes may
15+
have been pre-configured or you need to configure it. If you're using a managed
16+
Kubernetes service, there might be vendor-specific ways to check what container runtime is
17+
configured for the nodes. The method described on this page should work whenever
18+
the execution of `kubectl` is allowed.
19+
20+
## {{% heading "prerequisites" %}}
21+
22+
Install and configure `kubectl`. See [Install Tools](/docs/tasks/tools/#kubectl) section for details.
23+
24+
## Find out the container runtime used on a Node
25+
26+
Use `kubectl` to fetch and show node information:
27+
28+
```shell
29+
kubectl get nodes -o wide
30+
```
31+
32+
The output is similar to the following. The column `CONTAINER-RUNTIME` outputs
33+
the runtime and its version.
34+
35+
```none
36+
# For dockershim
37+
NAME STATUS VERSION CONTAINER-RUNTIME
38+
node-1 Ready v1.16.15 docker://19.3.1
39+
node-2 Ready v1.16.15 docker://19.3.1
40+
node-3 Ready v1.16.15 docker://19.3.1
41+
```
42+
43+
```none
44+
# For containerd
45+
NAME STATUS VERSION CONTAINER-RUNTIME
46+
node-1 Ready v1.19.6 containerd://1.4.1
47+
node-2 Ready v1.19.6 containerd://1.4.1
48+
node-3 Ready v1.19.6 containerd://1.4.1
49+
```
50+
51+
Find out more information about container runtimes
52+
on [Container Runtimes](/docs/setup/production-environment/container-runtimes/) page.

0 commit comments

Comments
 (0)