Docker can't connect to boot2docker because of TCP timeout

后端 未结 12 1926
遇见更好的自我
遇见更好的自我 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:12

    Here's what worked for me when I hit a similar snag. Make sure you've upgraded VirtualBox, then:

    1. boot2docker stop
    2. boot2docker init
    3. boot2docker start; eval "$(boot2docker shellinit)"

    Then, just for sanity's sake, check that $DOCKER_HOST matches $(boot2docker ip). I suspect I had many things going on, as when I first started, $DOCKER_HOST had become unset somehow.

    The issue and some discussion can be found in the GitHub issues page here - it does rather seem as if it's often just a case of VirtualBox being flaky.

提交回复
热议问题