码迷,mamicode.com
首页 > 其他好文 > 详细

DOCKER_HOST have a weird tcp

时间:2015-08-17 12:02:11      阅读:210      评论:0      收藏:0      [点我收藏+]

标签:docker

[piqiu@benjaminpro ~]$boot2docker start
Waiting for VM and Docker daemon to start...
..........................................................................oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
Started.
  Trying to get Docker socket one more time
Error requesting socket: exit status 255
Auto detection of the VM's Docker socket failed.
Please run `boot2docker -v up` to diagnose.


[piqiu@benjaminpro ~]$boot2docker ip

Failed to get VM Host only IP address.
	Was the VM initialized using boot2docker?

how to solved it?

i google the issue:https://github.com/boot2docker/boot2docker/issues/392


我发现是我在操作VirtualBox的时候把Port forwarding里的本机映射删除了。

技术分享

解决方法:

[piqiu@benjaminpro ~]$boot2docker delete
[piqiu@benjaminpro ~]$boot2docker init
Initialization of virtual machine "boot2docker-vm" complete.
Use `boot2docker up` to start it.
[piqiu@benjaminpro ~]$boot2docker up
Waiting for VM and Docker daemon to start...
........................ooooooooooooooooooooooo
Started.
Writing /Users/piqiu1/.boot2docker/certs/boot2docker-vm/ca.pem
Writing /Users/piqiu1/.boot2docker/certs/boot2docker-vm/cert.pem
Writing /Users/piqiu1/.boot2docker/certs/boot2docker-vm/key.pem
Your environment variables are already set correctly.

[piqiu@benjaminpro ~]$boot2docker ip
192.168.59.103
[piqiu@benjaminpro ~]$boot2docker ssh
                        ##         .
                  ## ## ##        ==
               ## ## ## ## ##    ===
           /"""""""""""""""""\___/ ===
      ~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ /  ===- ~~~
           \______ o           __/
             \    \         __/
              \____\_______/
 _                 _   ____     _            _
| |__   ___   ___ | |_|___ \ __| | ___   ___| | _____ _ __
| '_ \ / _ \ / _ \| __| __) / _` |/ _ \ / __| |/ / _ \ '__|
| |_) | (_) | (_) | |_ / __/ (_| | (_) | (__|   <  __/ |
|_.__/ \___/ \___/ \__|_____\__,_|\___/ \___|_|\_\___|_|
Boot2Docker version 1.7.1, build master : c202798 - Wed Jul 15 00:16:02 UTC 2015
Docker version 1.7.1, build 786b29d


版权声明:本文为博主原创文章,未经博主允许不得转载。

DOCKER_HOST have a weird tcp

标签:docker

原文地址:http://blog.csdn.net/benjamin_whx/article/details/47722715

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!