我在 docker-in-docker (dind) 场景中运行了这样的命令:
docker daemon --host=unix:///var/run/docker.sock --host=tcp://0.0.0.0:2375 --storage-driver=overlay
我在日志中得到了这个:
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
最佳答案
一定要在特权
模式下运行容器。
docker run --privileged ...
这应该可以解决问题;您现在应该能够在此 Docker 镜像中安装和运行 Docker。
关于docker - 无法连接到 containerd,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38808941/