Mac上的Docker TLS错误 [英] Docker TLS error on Mac

查看:450
本文介绍了Mac上的Docker TLS错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我运行 docker图像并收到以下错误:

I ran docker images and got the following error:

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

似乎没有有用的消息如何解决错误。可能是错误的?

There seems to be no useful message on how to fix the error. What could be wrong?

推荐答案

https://docs.docker.com/installation/mac/

你需要这样做一次

you need to do this once:

boot2docker init

然后,每当你重新启动你的Mac,你将需要运行:

then, everytime you reboot your mac you will need to run :

boot2docker start

这是启动docker守护程序的命令。但是,在每个shell上,您需要执行以下操作:

That is the command that starts the docker daemon. But, on each shell you want to access it from you will need to run:

$(boot2docker shellinit)

现在您可以使用docker客户端,如:

Now you can use the docker client, like:

docker run hello-world

这篇关于Mac上的Docker TLS错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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