DOCKER_HOST have a weird tcp

Posted lytwajue

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了DOCKER_HOST have a weird tcp相关的知识,希望对你有一定的参考价值。

[[email protected] ~]$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.


[[email protected] ~]$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里的本机映射删除了。

技术分享

解决方法:

[[email protected] ~]$boot2docker delete
[[email protected] ~]$boot2docker init
Initialization of virtual machine "boot2docker-vm" complete.
Use `boot2docker up` to start it.
[[email protected] ~]$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.

[[email protected] ~]$boot2docker ip
192.168.59.103
[[email protected] ~]$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的主要内容,如果未能解决你的问题,请参考以下文章

CF1088F Ehab and a weird weight formula

[AGC055C]Weird LIS

CF1088F Ehab and a weird weight formula倍增

text Drupal Debug Weirdness

ruby weird.rb

WeIrD StRiNg CaSe