[英]boot2docker certificate error
I download the boot2docker@1.7.1
and install it through the package wizard. 我下载了
boot2docker@1.7.1
并通过软件包向导进行安装。 But when I try to run it, it throws me this error: 但是,当我尝试运行它时,会引发以下错误:
An error occurred trying to connect: Post https://192.168.59.103:2376/v1.19/containers/create: remote error: bad certificate
I tried with all this options, but the issue remains. 我尝试了所有这些选项,但问题仍然存在。
You could try running boot2docker shellinit
to set up your certificates and print some commands to be executed before you run anything using the docker
command. 你可以尝试运行
boot2docker shellinit
设置你的证书和打印您使用运行任何之前要执行一些命令docker
命令。
On a Mac it would look similar to: 在Mac上,其外观类似于:
Writing /Users/xyz/.boot2docker/certs/boot2docker-vm/ca.pem
Writing /Users/xyz/.boot2docker/certs/boot2docker-vm/cert.pem
Writing /Users/xyz/.boot2docker/certs/boot2docker-vm/key.pem
export DOCKER_HOST=tcp://192.168.59.103:2376
export DOCKER_CERT_PATH=/Users/xyz/.boot2docker/certs/boot2docker-vm
export DOCKER_TLS_VERIFY=1
Here you could simply run $(boot2docker shellinit)
to set up everything properly. 在这里,您只需运行
$(boot2docker shellinit)
即可正确设置所有内容。
On Windows you will have some SET
commands to issue instead of those export
commands. 在Windows上,您将要发出一些
SET
命令,而不是那些export
命令。 For further information for Windows users please refer to the boot2docker documentation . 有关Windows用户的更多信息,请参考boot2docker文档 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.