dyrnq / kubeadm-vagrant

Run kubernetes cluster with kubeadm on vagrant.
1 stars 5 forks source link

rootless containerd not running? (hint: use `containerd-rootless-setuptool.sh install` to start rootless containerd): stat /run/user/1000/containerd-rootless: no such file or directory #13

Open dyrnq opened 3 years ago

dyrnq commented 3 years ago

nerdctl can`t use normal user access unix:///run/containerd/containerd.sock

vagrant@worker2:~$ nerdctl --debug-full --cgroup-manager systemd -n k8s.io ps
FATA[0000] rootless containerd not running? (hint: use `containerd-rootless-setuptool.sh install` to start rootless containerd): stat /run/user/1000/containerd-rootless: no such file or directory 
vagrant@worker2:~$ ctr -n k8s.io i ls
REF                                                                                                                        TYPE                                                      DIGEST                                                                  SIZE      PLATFORMS                                                                    LABELS                          
docker.io/calico/cni:v3.20.2                                                                                               application/vnd.docker.distribution.manifest.list.v2+json sha256:3dae26de7388ff3c124b9abd7e8d12863887391f23549c4aebfbfa20cc0700a5 46.1 MiB  linux/amd64,linux/arm/v7,linux/arm64,linux/ppc64le                           io.cri-containerd.image=managed 
docker.io/calico/cni@sha256:3dae26de7388ff3c124b9abd7e8d12863887391f23549c4aebfbfa20cc0700a5                               application/vnd.docker.distribution.manifest.list.v2+json sha256:3dae26de7388ff3c124b9abd7e8d12863887391f23549c4aebfbfa20cc0700a5 46.1 MiB  linux/amd64,linux/arm/v7,linux/arm64,linux/ppc64le                           io.cri-containerd.image=managed 
docker.io/calico/node:v3.20.2                                                                                              application/vnd.docker.distribution.manifest.list.v2+json sha256:1ae8f57edec7c3a84cd48dd94132a1dcfd7c61bfff819c559f9379d4a56fe3b1 55.0 MiB  linux/amd64,linux/arm/v7,linux/arm64,linux/ppc64le                           io.cri-containerd.image=managed 
docker.io/calico/node@sha256:1ae8f57edec7c3a84cd48dd94132a1dcfd7c61bfff819c559f9379d4a56fe3b1                              application/vnd.docker.distribution.manifest.list.v2+json sha256:1ae8f57edec7c3a84cd48dd94132a1dcfd7c61bfff819c559f9379d4a56fe3b1 55.0 MiB  linux/amd64,linux/arm/v7,linux/arm64,linux/ppc64le                           io.cri-containerd.image=managed 
docker.io/calico/pod2daemon-flexvol:v3.20.2                                                                                application/vnd.docker.distribution.manifest.list.v2+json sha256:4514cc1b2f7536fe1d514fad8a2c46103382243bb9db5ea2d0063fcd2001e8f7 8.9 MiB   linux/amd64,linux/arm/v7,linux/arm64,linux/ppc64le                           io.cri-containerd.image=managed 
docker.io/calico/pod2daemon-flexvol@sha256:4514cc1b2f7536fe1d514fad8a2c46103382243bb9db5ea2d0063fcd2001e8f7                application/vnd.docker.distribution.manifest.list.v2+json sha256:4514cc1b2f7536fe1d514fad8a2c46103382243bb9db5ea2d0063fcd2001e8f7 8.9 MiB   linux/amd64,linux/arm/v7,linux/arm64,linux/ppc64le                           io.cri-containerd.image=managed 
quay.io/coreos/flannel:v0.14.0                                                                                             application/vnd.docker.distribution.manifest.list.v2+json sha256:4a330b2f2e74046e493b2edc30d61fdebbdddaaedcb32d62736f25be8d3c64d5 20.1 MiB  linux/amd64,linux/arm,linux/arm64,linux/ppc64le,linux/s390x                  io.cri-containerd.image=managed 
quay.io/coreos/flannel@sha256:4a330b2f2e74046e493b2edc30d61fdebbdddaaedcb32d62736f25be8d3c64d5                             application/vnd.docker.distribution.manifest.list.v2+json sha256:4a330b2f2e74046e493b2edc30d61fdebbdddaaedcb32d62736f25be8d3c64d5 20.1 MiB  linux/amd64,linux/arm,linux/arm64,linux/ppc64le,linux/s390x                  io.cri-containerd.image=managed 
registry.aliyuncs.com/google_containers/kube-proxy:v1.21.3                                                                 application/vnd.docker.distribution.manifest.list.v2+json sha256:c7778d7b97b2a822c3fe3e921d104ac42afbd38268de8df03557465780886627 34.2 MiB  linux/amd64,linux/arm/v7,linux/arm64,linux/ppc64le,linux/s390x               io.cri-containerd.image=managed 
registry.aliyuncs.com/google_containers/kube-proxy@sha256:c7778d7b97b2a822c3fe3e921d104ac42afbd38268de8df03557465780886627 application/vnd.docker.distribution.manifest.list.v2+json sha256:c7778d7b97b2a822c3fe3e921d104ac42afbd38268de8df03557465780886627 34.2 MiB  linux/amd64,linux/arm/v7,linux/arm64,linux/ppc64le,linux/s390x               io.cri-containerd.image=managed 
registry.aliyuncs.com/google_containers/pause:3.5                                                                          application/vnd.docker.distribution.manifest.list.v2+json sha256:1ff6c18fbef2045af6b9c16bf034cc421a29027b800e4f9b68ae9b1cb3e9ae07 294.4 KiB linux/amd64,linux/arm/v7,linux/arm64,linux/ppc64le,linux/s390x,windows/amd64 io.cri-containerd.image=managed 
registry.aliyuncs.com/google_containers/pause@sha256:1ff6c18fbef2045af6b9c16bf034cc421a29027b800e4f9b68ae9b1cb3e9ae07      application/vnd.docker.distribution.manifest.list.v2+json sha256:1ff6c18fbef2045af6b9c16bf034cc421a29027b800e4f9b68ae9b1cb3e9ae07 294.4 KiB linux/amd64,linux/arm/v7,linux/arm64,linux/ppc64le,linux/s390x,windows/amd64 io.cri-containerd.image=managed 
sha256:48d8a30c26b64eb80b05c10cacd4bf0079a32057b5728d95d47396bd2d9f0340                                                    application/vnd.docker.distribution.manifest.list.v2+json sha256:1ae8f57edec7c3a84cd48dd94132a1dcfd7c61bfff819c559f9379d4a56fe3b1 55.0 MiB  linux/amd64,linux/arm/v7,linux/arm64,linux/ppc64le                           io.cri-containerd.image=managed 
sha256:6e1e20b5e9c8d7a299311e5541581f2c4d0f9815f8ad03922ba825199070ad22                                                    application/vnd.docker.distribution.manifest.list.v2+json sha256:3dae26de7388ff3c124b9abd7e8d12863887391f23549c4aebfbfa20cc0700a5 46.1 MiB  linux/amd64,linux/arm/v7,linux/arm64,linux/ppc64le                           io.cri-containerd.image=managed 
sha256:8522d622299ca431311ac69992419c956fbaca6fa8289c76810c9399d17c69de                                                    application/vnd.docker.distribution.manifest.list.v2+json sha256:4a330b2f2e74046e493b2edc30d61fdebbdddaaedcb32d62736f25be8d3c64d5 20.1 MiB  linux/amd64,linux/arm,linux/arm64,linux/ppc64le,linux/s390x                  io.cri-containerd.image=managed 
sha256:8abc06ab2d66648ad5b4ad7c2bc12ebcd54361731efb9ba58c167a098295dff7                                                    application/vnd.docker.distribution.manifest.list.v2+json sha256:4514cc1b2f7536fe1d514fad8a2c46103382243bb9db5ea2d0063fcd2001e8f7 8.9 MiB   linux/amd64,linux/arm/v7,linux/arm64,linux/ppc64le                           io.cri-containerd.image=managed 
sha256:adb2816ea823a9eef18ab4768bcb11f799030ceb4334a79253becc45fa6cce92                                                    application/vnd.docker.distribution.manifest.list.v2+json sha256:c7778d7b97b2a822c3fe3e921d104ac42afbd38268de8df03557465780886627 34.2 MiB  linux/amd64,linux/arm/v7,linux/arm64,linux/ppc64le,linux/s390x               io.cri-containerd.image=managed 
sha256:ed210e3e4a5bae1237f1bb44d72a05a2f1e5c6bfe7a7e73da179e2534269c459                                                    application/vnd.docker.distribution.manifest.list.v2+json sha256:1ff6c18fbef2045af6b9c16bf034cc421a29027b800e4f9b68ae9b1cb3e9ae07 294.4 KiB linux/amd64,linux/arm/v7,linux/arm64,linux/ppc64le,linux/s390x,windows/amd64 io.cri-containerd.image=managed 
vagrant@worker2:~$ crictl ps
CONTAINER           IMAGE               CREATED             STATE               NAME                ATTEMPT             POD ID
fc93b9ca4065f       48d8a30c26b64       21 minutes ago      Running             calico-node         0                   69e7dc0da6084
c77db495dc8b1       8522d622299ca       22 minutes ago      Running             kube-flannel        0                   94581fcd586aa
71f0bc957c255       adb2816ea823a       22 minutes ago      Running             kube-proxy          0                   2f8f4082345a7

see https://github.com/containerd/nerdctl/issues/341

dyrnq commented 3 years ago

maybe nerdctl is a fat client then docker run,some job like nerdctl0 interface created by nerdctl instead of send to containerd(dockerd). so it is not the same with docker(thin client) and dockerd