Docker守护进程没有运行

编程入门 行业动态 更新时间:2024-10-07 04:22:48
本文介绍了Docker守护进程没有运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 我刚刚在Ubuntu 14.10 64位操作系统上安装了Docker,我按照步骤创建必要的证书和密钥,以便我可以保护我的docker http远程连接。当我尝试发出以下命令时,

sudo docker --tlsverify --tlscacert = ca.pem --tlscert = cert .pem --tlskey = key.pem -H = xxxx:2376版本

我看到以下错误消息:

无法连接到Docker守护程序。 'docker -d'在这个主机上运行

-H = xxxx是我看到的主机当我做了一个ifconfig,并从所列出的docker0条目中找到主机。

请帮助我确定为什么我无法对我的守护进程做任何事情。

解决方案

您是否更改了守护程序本身的选项?释义文档:

您可以使用-H tcp://0.0.0.0:2376或使用其IP地址在特定网络接口上监听所有网络接口上的端口2376:-H TCP://192.168.59.103:2376。

为此,您可以编辑 /etc/init/docker.conf 并更新 DOCKER_OPTS 变量

I just installed Docker on mu Ubuntu 14.10 64 bit OS and I followed the steps to create the necessary certificates and keys so that I can secure my docker http remote connections. When I tried to issue the following command,

sudo docker --tlsverify --tlscacert=ca.pem --tlscert=cert.pem --tlskey=key.pem -H=x.x.x.x:2376 version

I get to see the following error message:

Cannot connect to the Docker daemon. Is 'docker -d' running on this host

The -H=x.x.x.x is the host as I see when I did a ifconfig and found the host from the docker0 entry that was listed.

Please help me identify why I'm not able to do anything with my daemon.

解决方案

Did you change the options on the daemon itself? Paraphrasing the docs:

You can listen on port 2376 on all network interfaces with -H tcp://0.0.0.0:2376, or on a particular network interface using its IP address: -H tcp://192.168.59.103:2376.

To do this you could edit /etc/init/docker.conf and update the DOCKER_OPTS variable

更多推荐

Docker守护进程没有运行

本文发布于:2023-11-23 22:04:40,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1622981.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:进程   Docker

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!