[英]Failed to connect to containerd
I ran a command like this in a docker-in-docker (dind) scenario: 我在docker-in-docker(dind)场景中运行了这样的命令:
docker daemon --host=unix:///var/run/docker.sock --host=tcp://0.0.0.0:2375 --storage-driver=overlay
And I got this in the logs: 我在日志中得到了这个:
INFO[0000] libcontainerd: new containerd process, pid: 18
FATA[0000] Failed to connect to containerd. Please make sure containerd is installed in your PATH or you have specificed the correct address. Got error: write /proc/18/oom_score_adj: permission denied
Be sure to run the container in privileged
mode. 确保以privileged
模式运行容器。
docker run --privileged ...
This should fix the problem; 这应该可以解决问题; you should now be able to install and run Docker inside this Docker image. 您现在应该能够在此Docker映像中安装并运行Docker。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.