Boot2docker - An error occured while trying to connect while running docker version command

When I use boot2docker to run boot2docker-vm, then in gitbash I run the docker version command, I get this:

$ docker version
Client version: 1.6.2
Client API version: 1.18
Go version (client): go1.4.2
Git commit (client): 7c8fca2
OS/Arch (client): windows/amd64
FATA[0021] An error occurred trying to connect: Get     https://192.168.59.103:2376/v1.18/version: dial tcp 192.168.59.103:2376: ConnectEx tcp: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

      

However, when I enter the virtual box, I see boot2docker-vm is running. When I stop boot2docker-vm and then start it myself - I can use the vm to use docker - it would be much easier to use gitbash to work with it ... anyone have any ideas?

+3


source to share


2 answers


You have to start a shell inside gitbash, use:

$ $(boot2docker shellinit) 

      



in the terminal.

Here is the documentation for mac: https://docs.docker.com/installation/mac/ .

+3


source


This post describes the configuration of VirtualBox systems for Win64 after installing boot2docker.



  • Change VirtualBox Global Settings to provide DHCP server on network adapter # 2 instead of # 3 with exactly the same settings as # 3
  • Change boot2docker-vm host-only network adapter networking configuration from pre-configured adapter # 3 to # 2
+1


source







All Articles