When you are trying to connect docker to boot2docker on OSX, you probably got this error message:
1 |
fata 0032 an error occurred trying to connect i/o timeout |
Solution to fix this error:
Go to the Virtual Box -> Preferences -> Network -> Host-only networks
- Delete the host only networks
- and create one new.
Then open the command line run this commands:
Warning: The boot2docker command delete all your docker images!
1 2 3 4 5 6 |
> boot2docker delete > boot2docker download > boot2docker init > boot2docker up > (set the environment variables like DOOCKER_HOST etc.) > docker info |
Now, the docker could be works!