Docker can't connect to boot2docker because of TCP timeout

后端 未结 12 2012
遇见更好的自我
遇见更好的自我 2021-01-29 20:59

I\'m running Mac OS 10.9.5 (Mavericks), I\'ve followed https://docs.docker.com/installation/mac/ to install Docker. I get a timeout error message when I run Docker even though t

12条回答
  •  情话喂你
    2021-01-29 21:11

    OK, so this happened to me as well.

    First of all, setting the environment variables is necessary. But then, I kept getting the I/O timeout error even after that.

    So, instead of starting boot2docker by running the application package (clicking on the boot2docker icon), I started it from the command line.

    I first executed,

    $boot2docker init
    

    This said, the VM was already running.

    Then I went ahead and tried to start it.

    $boot2docker start
    

    This started it.

    You can verify it by running

    $boot2docker info
    

    It prints a JSON about your running instance.

    Then, you can ssh into it and run

    $boot2docker ssh
    $docker run hello-world
    

    That's it.

提交回复
热议问题