Docker:您是否尝试连接到不带TLS的启用TLS的守护程序? [英] Docker: Are you trying to connect to a TLS-enabled daemon without TLS?

查看:153
本文介绍了Docker:您是否尝试连接到不带TLS的启用TLS的守护程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Linux Mint 17.1 x86_64与内核3.13.0-48通用和OpenSSL版本1.0.1f-1ubuntu2.11;每当我尝试执行任何docker命令(如 docker login docker运行hello-world ),我得到以下错误:

  FATA [0000]获取http:///var/run/docker.sock/v1.18/info:拨unix /var/run/docker.sock:没有这样的文件或目录。您是否尝试连接到不带TLS的启用TLS的守护程序? 

我已经创建了一个名为 docker 的组 sudo usermod -aG docker username ,我已尝试以root身份正常运行命令,添加 $(boot2docker shellinit 2> / dev / null) 〜/ .profile 按照指示这里重新启动我的电脑并重新安装OpenSSL。



解决方案

您可以通过运行命令 -ef 。如果您想减少结果数量(使用 | grep docker ),您也可以将其grep到 docker 。如果没有运行,执行

  sudo service docker start 

或如果仍然不起作用,那么



您可以参考此链接



docker docs



您可以运行 docker run -d docker run -d& ,以便您可以使用相同的终端,甚至可以关闭它。它将值设置为true,因此您的容器将在后台以分离模式运行。



当您的操作系统开始使用 update-rc.d servicename defaults 或者也可以自动启动请参阅以下链接,您必须将 docker 作为服务名称和默认值。



还有一些链接参考 -
自动启动
启动



这是不同的方法。


On Linux Mint 17.1 x86_64 with kernel 3.13.0-48-generic and OpenSSL version 1.0.1f-1ubuntu2.11; whenever I try to execute any docker command (like docker login or docker run hello-world), I get the following error:

FATA[0000] Get http:///var/run/docker.sock/v1.18/info: dial unix /var/run/docker.sock: no such file or directory. Are you trying to connect to a TLS-enabled daemon without TLS? 

I have made a group called docker using sudo usermod -aG docker username, I have tried running the commands both as root and normally, added $(boot2docker shellinit 2> /dev/null) to ~/.profile as instructed here, restarted my PC and reinstalled OpenSSL.

Any idea what am I missing? Can this be a hardware issue?

解决方案

You can check if it has started by running the command ps -ef. You can also grep it to docker if you want to reduce the number of results(using | grep docker). If its of not running, execute

sudo service docker start

OR if it still doesn't work then

You can refer this link

docker docs

You can run docker run -d or docker run -d & so that you can use the same terminal or even close it if. It will set the value to true, so your container will run in "detached" mode, in the background.

You can also auto start it when your OS starts using update-rc.d servicename defaults or you can also refer to the links below, where you have to give docker as service name and your defaults.

Some more links to refer - auto start, upstart

These are different ways of doing it.

这篇关于Docker:您是否尝试连接到不带TLS的启用TLS的守护程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆