我看到以下错误消息:
无法连接到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 versionI get to see the following error message:
Cannot connect to the Docker daemon. Is 'docker -d' running on this hostThe -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守护进程没有运行
发布评论