docker - 无法连接到 containerd

标签 docker

我在 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/

相关文章:

maven - 在 DockerFile 中动态获取 JAR 文件名

python - Docker 找不到我在 MacOS Big Sur 上添加到文件共享的路径

python - Docker 镜像如何在本地构建,而不是在远程目标?

node.js - 我应该在(Docker)容器中使用 forever/pm2 吗?

php - 如何在Docker PHP官方镜像实例中添加Zend Guard Loader支持?

php - PHP-我应该如何精确定义版本

docker - 如何从终端附加到 vscode 中的容器日志

python-3.x - Docker 中的 Flask 无法检测到 FLASK_ENV

docker - 在 docker 容器中通过桥接时无法访问 SSL IP。获取 SSL_ERROR_SYSCALL

docker - golang 程序在 docker 之外运行良好,但在 dockerized 时以 0 退出