[英]Docker on Yosemite OSX: Add host “boot2docker” and starting
On Yosemite OSX, I need some assistance of adding a host "boot2docker" and then starting docker machine using this host. 在Yosemite OSX上,我需要一些帮助,添加一个主机“ boot2docker”,然后使用该主机启动docker计算机。
Initially, I was trying to resolve TLS warnings after the following line within my .bash_profile script ran: 最初,我尝试在.bash_profile脚本中的以下行运行后解决TLS警告:
eval "$(docker-machine env boot2docker)"
Reading through other postings, it recommended rm and then adding "boot2docker", so I did this, remove "boot2docker" host, and now I forget how to add this host back: 通读其他文章,建议使用rm,然后添加“ boot2docker”,因此我这样做了,删除了“ boot2docker”主机,现在我忘记了如何重新添加此主机:
docker-machine rm boot2docker
So now I am getting a new error: 所以现在我收到一个新错误:
Host does not exist: "boot2docker"
I have Docker install and default does run 我安装了Docker并且默认运行
$ docker-machine ls
NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS
default * virtualbox Running tcp://192.168.99.100:2376 v1.11.0
$ docker-machine status
Running
The boot2docker.iso is found within my home directory; boot2docker.iso位于我的主目录中;
ls -al .boot2docker/
total 65536
drwxr-xr-x 5 jefft staff 170 Feb 18 13:58 .
drwxr-xr-x@ 41 jefft staff 1394 Apr 18 09:32 ..
srwxr-xr-x 1 jefft staff 0 Feb 18 13:58 boot2docker-vm.sock
-rw-r--r-- 1 jefft staff 33554432 Feb 18 13:57 boot2docker.iso
drwxr-xr-x 3 jefft staff 102 Feb 18 13:58 certs
How can I re-add Host "boot2docker" back and then once that is done get past the TLS warnings? 我该如何重新添加主机“ boot2docker”,然后一旦完成,就越过TLS警告?
Thanks 谢谢
实际上,我只需要执行以下操作,就可以了:
docker-machine create boot2docker
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.