-
Notifications
You must be signed in to change notification settings - Fork 2k
docker-machine env xx hangs forever after sleep #1934
Comments
It has been reported on stackoverflow by the commentor Petrik the following hint:
|
In VirtualBox:
resulted first in:
but after some time:
and This approach internally might include the mechanisms of the solution proposed by Petrik (see above post) |
I can confirm, unlike suggested above, that Petrik's proposal, as I understand it, does NOT fix the issue:
|
This approach works for me perfectly (even without restarting containers!) Hope it helps! |
Copied for reference.
|
Run into the same issue (as described in moby/moby#16265) every time my notebook wakes up from sleep. Dzoukr suggestion unfortunatelly doesn't help. But @blaggacao with deletion the host only network and subsequent restarting the docker machine helps. While following @blaggacao instruction I noticed that IPv4 Address and IPv4 Network Mask parameters in Host-only Network Details dialog opened for correspoding adapter of the Docker machine change after waking up the notebook. In my case before the time notebook goes to sleep (when Docker works) these parameters are 192.168.99.1 and 255.255.255.0 and after waking up they change to a link-local address 169.254.183.64 and 255.255.0.0 mask correspondingly. |
After each docker-machine restart, new host-only network is created. Did you try to set just one host-only network (delete the others), suspend VM from VirtualBox and start it after PC waken from sleep? Anyway, I´ll post here host-only network IP setup, maybe it can help somebody (sorry if not :)). Adapter tab
DHCP tab
|
$ docker version Server: I'm running Docker on Win7 host in a boot2docker vm. I'm having same issue. After host sleeps and wakes up, docker commands are no longer working. I have found next workaround in restoring docker functionality. Bingo, everything works again. Notice, I was able to ssh into boot2docker, so for me it is not connectivity issue. I hope this will help to track and solve the issue. |
This also happens to me every day. VMWare Fusion on OSX. Makes docker-machine a complete pain to use. |
Giving up on the official drivers since there doesn't seem to be any traction on getting this show stopper solved. Anyone else having the same problem, getting rid of VMWare and switching to latest xhyve fixed it for my entire team: |
I have this problem on Linux host. |
This issue has been reported in detail here: moby/moby#16265.
It then has been moved to #1500, which I feel made up the root cause in VPN incompatibility. However, in my opinion, it deserves differentiated treatment despite of showing same/similar symptoms.
You probably have this issue, if
docker-machine env xxx
does hang after your windows machine fell asleep and woke up again.It is currently reported and confirmed on Win10 Hosts. Restarting the host is reported to fix this issue.
Please consider checking moby/moby#16265 and provide further details, if you can.
The text was updated successfully, but these errors were encountered: