Welcome to the Linux Foundation Forum!
[containerd] list of containers
thomas.bucaioni
Posts: 207
Hello,
Calling sudo crictl ps -a
produces two warnings and two errors:
$ k get po --all-namespaces NAMESPACE NAME READY STATUS RESTARTS AGE accounting nginx-one-6f98c96fc6-7rfl5 2/2 Running 6 (28m ago) 3d3h accounting nginx-one-6f98c96fc6-fmclb 2/2 Running 6 (28m ago) 3d3h accounting nginx-one-6f98c96fc6-k62n5 2/2 Running 6 (28m ago) 3d3h accounting nginx-one-6f98c96fc6-rz9t4 2/2 Running 6 (28m ago) 3d3h accounting nginx-one-6f98c96fc6-x8mwh 2/2 Running 6 (28m ago) 3d3h default my-nginx-dep-7577875bb4-kpvpb 1/1 Running 3 (28m ago) 3d6h default myingress-ingress-nginx-controller-627kz 2/2 Running 2 (28m ago) 24h default myingress-ingress-nginx-controller-g4p26 2/2 Running 4 (28m ago) 2d default web-one-6745f6ddd8-2zqbt 1/1 Running 3 (28m ago) 3d3h default web-two-d8fdb7879-9xm8z 1/1 Running 3 (28m ago) 3d3h kube-system calico-kube-controllers-56cdb7c587-w68kv 1/1 Running 8 (28m ago) 4d3h kube-system calico-node-2slwc 1/1 Running 4 (28m ago) 4d3h kube-system calico-node-q9pkl 1/1 Running 4 (28m ago) 4d3h kube-system coredns-6d4b75cb6d-67cnn 1/1 Running 4 (28m ago) 4d3h kube-system coredns-6d4b75cb6d-chzsn 1/1 Running 4 (28m ago) 4d3h kube-system etcd-cpnode 1/1 Running 9 (28m ago) 4d3h kube-system kube-apiserver-cpnode 1/1 Running 9 (28m ago) 4d3h kube-system kube-controller-manager-cpnode 1/1 Running 4 (28m ago) 4d3h kube-system kube-proxy-mm4sb 1/1 Running 4 (28m ago) 4d3h kube-system kube-proxy-p9rx5 1/1 Running 4 (28m ago) 4d3h kube-system kube-scheduler-cpnode 1/1 Running 4 (28m ago) 4d3h linkerd-viz grafana-5595bcc798-6xwlv 2/2 Running 6 (28m ago) 3d6h linkerd-viz metrics-api-69d57b76db-zfc6q 2/2 Running 12 (23m ago) 3d6h linkerd-viz prometheus-5db449486f-q6dn6 2/2 Running 6 (28m ago) 3d6h linkerd-viz tap-6b699d897f-52nzm 2/2 Running 11 (28m ago) 3d6h linkerd-viz tap-injector-7489469df9-zxkd6 2/2 Running 8 (28m ago) 3d6h linkerd-viz web-55b57f8b89-htvgj 2/2 Running 6 (28m ago) 3d5h linkerd linkerd-destination-d4bcbc947-7vvm2 4/4 Running 12 (28m ago) 3d6h linkerd linkerd-identity-685dc4fd66-9pzj6 2/2 Running 6 (28m ago) 3d6h linkerd linkerd-proxy-injector-85dfcb6798-zqptp 2/2 Running 8 (22m ago) 3d6h $ sudo crictl ps -a WARN[0000] runtime connect using default endpoints: [unix:///var/run/dockershim.sock unix:///run/containerd/containerd.sock unix:///run/crio/crio.sock unix:///var/run/cri-dockerd.sock]. As the default settings are now deprecated, you should set the endpoint instead. ERRO[0000] unable to determine runtime API version: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial unix /var/run/dockershim.sock: connect: no such file or directory" WARN[0000] image connect using default endpoints: [unix:///var/run/dockershim.sock unix:///run/containerd/containerd.sock unix:///run/crio/crio.sock unix:///var/run/cri-dockerd.sock]. As the default settings are now deprecated, you should set the endpoint instead. ERRO[0000] unable to determine image API version: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial unix /var/run/dockershim.sock: connect: no such file or directory" CONTAINER IMAGE CREATED STATE NAME ATTEMPT POD ID POD 03f5f040e7f23 04fcc70194086 33 minutes ago Running controller 1 17749e5a9f78e myingress-ingress-nginx-controller-627kz e380aa9be5450 fb049291a9df1 35 minutes ago Running linkerd-proxy 1 17749e5a9f78e myingress-ingress-nginx-controller-627kz 08c5a3bfa7d6e f13f2bbffc542 35 minutes ago Exited linkerd-init 1 17749e5a9f78e myingress-ingress-nginx-controller-627kz 9cb8bbfa08c2a fbfd04bbb7f47 35 minutes ago Running calico-node 4 32f39ef8efe5a calico-node-2slwc bc5cee820f48a 90d97aa939bbf 35 minutes ago Exited install-cni 0 32f39ef8efe5a calico-node-2slwc 23998919fdc52 90d97aa939bbf 36 minutes ago Exited upgrade-ipam 0 32f39ef8efe5a calico-node-2slwc eba22165d57f6 beb86f5d8e6cd 36 minutes ago Running kube-proxy 4 adb1513446c7a kube-proxy-p9rx5 0bc226b330aff aebe758cef4cd 37 minutes ago Running etcd 9 4fc9149069298 etcd-cpnode 000593b5bfae3 b4ea7e648530d 37 minutes ago Running kube-controller-manager 4 013d7c5f7eb42 kube-controller-manager-cpnode 6bd3fb0c1ca5c 18688a72645c5 37 minutes ago Running kube-scheduler 4 455890d4f878d kube-scheduler-cpnode 56343cec3c54a e9f4b425f9192 37 minutes ago Running kube-apiserver 9 839b5ce1917e8 kube-apiserver-cpnode 0579e99004d96 04fcc70194086 24 hours ago Exited controller 0 923f5bf12a33c myingress-ingress-nginx-controller-627kz 43eb8c0346fa1 fb049291a9df1 24 hours ago Exited linkerd-proxy 0 923f5bf12a33c myingress-ingress-nginx-controller-627kz 7e69a70e2ef3a fbfd04bbb7f47 25 hours ago Exited calico-node 3 313920ced5df6 calico-node-2slwc 246ea0f0ee0da beb86f5d8e6cd 25 hours ago Exited kube-proxy 3 2de141993821f kube-proxy-p9rx5 507a8ca5578ba b4ea7e648530d 25 hours ago Exited kube-controller-manager 3 ce6f69d9eacda kube-controller-manager-cpnode b45e20d890596 18688a72645c5 25 hours ago Exited kube-scheduler 3 685494fb92b9b kube-scheduler-cpnode 287a7a614b36b e9f4b425f9192 25 hours ago Exited kube-apiserver 8 88d831949abda kube-apiserver-cpnode 9d302b0191c95 aebe758cef4cd 25 hours ago Exited etcd 8 926399ccacf48 etcd-cpnode
Any idea what goes wrong?
0
Best Answer
-
@thomas.bucaioni You can find out what container runtime is used on you kates nodes with this command
kubectl get nodes -o wide
and use the same for crictl.
For example if you want to use containerd runtime you have to use this command:echo "===================================" &&\ echo "Config BEFORE change:" &&\ sudo cat /etc/crictl.yaml &&\ sudo crictl config --set runtime-endpoint=unix:///run/containerd/containerd.sock --set image-endpoint=unix:///run/containerd/containerd.sock &&\ echo "===================================" &&\ echo "Config AFTER change:" &&\ sudo cat /etc/crictl.yaml
2
Answers
-
Hi @oleksazhel
The error message disappeared, thank you very much for the trick1
Categories
- All Categories
- 217 LFX Mentorship
- 217 LFX Mentorship: Linux Kernel
- 788 Linux Foundation IT Professional Programs
- 352 Cloud Engineer IT Professional Program
- 177 Advanced Cloud Engineer IT Professional Program
- 82 DevOps Engineer IT Professional Program
- 146 Cloud Native Developer IT Professional Program
- 137 Express Training Courses
- 137 Express Courses - Discussion Forum
- 6.2K Training Courses
- 46 LFC110 Class Forum - Discontinued
- 70 LFC131 Class Forum
- 42 LFD102 Class Forum
- 226 LFD103 Class Forum
- 18 LFD110 Class Forum
- 37 LFD121 Class Forum
- 18 LFD133 Class Forum
- 7 LFD134 Class Forum
- 18 LFD137 Class Forum
- 71 LFD201 Class Forum
- 4 LFD210 Class Forum
- 5 LFD210-CN Class Forum
- 2 LFD213 Class Forum - Discontinued
- 128 LFD232 Class Forum - Discontinued
- 2 LFD233 Class Forum
- 4 LFD237 Class Forum
- 24 LFD254 Class Forum
- 693 LFD259 Class Forum
- 111 LFD272 Class Forum
- 4 LFD272-JP クラス フォーラム
- 12 LFD273 Class Forum
- 145 LFS101 Class Forum
- 1 LFS111 Class Forum
- 3 LFS112 Class Forum
- 2 LFS116 Class Forum
- 4 LFS118 Class Forum
- 6 LFS142 Class Forum
- 5 LFS144 Class Forum
- 4 LFS145 Class Forum
- 2 LFS146 Class Forum
- 3 LFS147 Class Forum
- 1 LFS148 Class Forum
- 15 LFS151 Class Forum
- 2 LFS157 Class Forum
- 25 LFS158 Class Forum
- 7 LFS162 Class Forum
- 2 LFS166 Class Forum
- 4 LFS167 Class Forum
- 3 LFS170 Class Forum
- 2 LFS171 Class Forum
- 3 LFS178 Class Forum
- 3 LFS180 Class Forum
- 2 LFS182 Class Forum
- 5 LFS183 Class Forum
- 31 LFS200 Class Forum
- 737 LFS201 Class Forum - Discontinued
- 3 LFS201-JP クラス フォーラム
- 18 LFS203 Class Forum
- 130 LFS207 Class Forum
- 2 LFS207-DE-Klassenforum
- 1 LFS207-JP クラス フォーラム
- 302 LFS211 Class Forum
- 56 LFS216 Class Forum
- 52 LFS241 Class Forum
- 48 LFS242 Class Forum
- 38 LFS243 Class Forum
- 15 LFS244 Class Forum
- 2 LFS245 Class Forum
- LFS246 Class Forum
- 48 LFS250 Class Forum
- 2 LFS250-JP クラス フォーラム
- 1 LFS251 Class Forum
- 150 LFS253 Class Forum
- 1 LFS254 Class Forum
- 1 LFS255 Class Forum
- 7 LFS256 Class Forum
- 1 LFS257 Class Forum
- 1.2K LFS258 Class Forum
- 10 LFS258-JP クラス フォーラム
- 118 LFS260 Class Forum
- 159 LFS261 Class Forum
- 42 LFS262 Class Forum
- 82 LFS263 Class Forum - Discontinued
- 15 LFS264 Class Forum - Discontinued
- 11 LFS266 Class Forum - Discontinued
- 24 LFS267 Class Forum
- 22 LFS268 Class Forum
- 30 LFS269 Class Forum
- LFS270 Class Forum
- 202 LFS272 Class Forum
- 2 LFS272-JP クラス フォーラム
- 1 LFS274 Class Forum
- 4 LFS281 Class Forum
- 9 LFW111 Class Forum
- 259 LFW211 Class Forum
- 181 LFW212 Class Forum
- 13 SKF100 Class Forum
- 1 SKF200 Class Forum
- 1 SKF201 Class Forum
- 795 Hardware
- 199 Drivers
- 68 I/O Devices
- 37 Monitors
- 102 Multimedia
- 174 Networking
- 91 Printers & Scanners
- 85 Storage
- 758 Linux Distributions
- 82 Debian
- 67 Fedora
- 17 Linux Mint
- 13 Mageia
- 23 openSUSE
- 148 Red Hat Enterprise
- 31 Slackware
- 13 SUSE Enterprise
- 353 Ubuntu
- 468 Linux System Administration
- 39 Cloud Computing
- 71 Command Line/Scripting
- Github systems admin projects
- 93 Linux Security
- 78 Network Management
- 102 System Management
- 47 Web Management
- 63 Mobile Computing
- 18 Android
- 33 Development
- 1.2K New to Linux
- 1K Getting Started with Linux
- 370 Off Topic
- 114 Introductions
- 173 Small Talk
- 22 Study Material
- 805 Programming and Development
- 303 Kernel Development
- 484 Software Development
- 1.8K Software
- 261 Applications
- 183 Command Line
- 3 Compiling/Installing
- 987 Games
- 317 Installation
- 96 All In Program
- 96 All In Forum
Upcoming Training
-
August 20, 2018
Kubernetes Administration (LFS458)
-
August 20, 2018
Linux System Administration (LFS301)
-
August 27, 2018
Open Source Virtualization (LFS462)
-
August 27, 2018
Linux Kernel Debugging and Security (LFD440)