简体   繁体   English

连接容器失败

[英]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.

相关问题 无法连接到 containerd:拨号失败 - Failed to connect to containerd: failed to dial 无法启动docker daemon,无法连接做容器 - Cannot start docker daemon, failed to connect do containerd Docker 失败并显示“无法启动 containerd:等待 containerd 启动超时” - Docker fails with "failed to start containerd: timeout waiting for containerd to start" 是什么导致传输​​:“拨号 unix /var/run/docker/containerd/docker-containerd.sock: connect: connection denied”? - What causes transport: “dial unix /var/run/docker/containerd/docker-containerd.sock: connect: connection refused”? Kubernetes 部署失败 jenkins 部署“无法创建容器任务” - Kubernetes deploy failed jenkins deployment "failed to create containerd task" docker:来自守护进程的错误响应:无法侦听抽象 unix 套接字“/containerd ...权限被拒绝:未知 - docker: Error response from daemon: failed to listen to abstract unix socket "/containerd ... permission denied: unknown 在 azure 上创建 ejbca docker 容器时,containerd 错误“无法通过 uid 找到用户” - containerd error "failed to find user by uid" when creating ejbca docker container on azure Containerd:相当于 docker 在 containerd 中检查 - Containerd: Equivalent of docker inspect in containerd Docker 服务在重启后无法启动 - 无法启动 containerd - Docker service won't start after power cycle - Failed to start containerd 来自守护进程的错误响应:启动 shim 失败:fork/exec /usr/bin/containerd-shim:打开的文件太多:未知 - Error response from daemon: failed to start shim: fork/exec /usr/bin/containerd-shim: too many open files: unknown
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM