无法在Debian OS中启动Docker守护程序

发布于 2025-01-19 05:59:44 字数 1130 浏览 5 评论 0原文

我正在尝试在 Debian 操作系统中安装 docker。已成功安装它,但我无法拉/推 docker 映像。

我收到以下错误。

docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.

当我检查守护程序日志时,我看到此错误。

error: desc = "transport: Error while dialing dial unix:///var/run/docker/containerd/containerd.sock: timeout". Reconnecting... module=grpc
failed to start daemon: Error initializing network controller: error obtaining controller instance: failed to create NAT chain DOCKER: iptables failed: iptables -t nat -N DOCKER: iptables v1.8.4 (legacy): can't initialize iptables table `nat': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
(exit status 3)

我手动启动了 docker,但它仍然会自动停止状态。 我创建了一个单独的用户并将其添加到 docker 组,即使我尝试使用 root 用户运行也仍然看到相同的错误。

 * Starting Docker docker                                                                                                                                           [ OK ]
root@:/etc# service docker status
 * Docker is not running```

How can i start the docker ?

I am trying to install docker in Debian OS. Successfully installed it but I am not able to PULL/PUSH docker images.

I am getting the below error.

docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.

When I am checking the daemon logs I am seeing this error.

error: desc = "transport: Error while dialing dial unix:///var/run/docker/containerd/containerd.sock: timeout". Reconnecting... module=grpc
failed to start daemon: Error initializing network controller: error obtaining controller instance: failed to create NAT chain DOCKER: iptables failed: iptables -t nat -N DOCKER: iptables v1.8.4 (legacy): can't initialize iptables table `nat': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
(exit status 3)

I started the docker manually but still, it's going to stop state automatically.
I created a separate user and added it to the docker group, even though I tried to run with the root user also still saw the same error.

 * Starting Docker docker                                                                                                                                           [ OK ]
root@:/etc# service docker status
 * Docker is not running```

How can i start the docker ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

寄人书 2025-01-26 05:59:44

检查您的 docker 安装路径是否对您的用户具有正确的权限。

查看此链接:https://docs.docker.com/config/daemon/

Check the your docker installed path having right permission to your user or not.

Checkout this link: https://docs.docker.com/config/daemon/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文