无法在Debian OS中启动Docker守护程序
我正在尝试在 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
检查您的 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/