New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running containers die when machine suspended #85
Comments
when will fix this? |
Experiencing this problem on Macbook pro yosemite 10.10.5 when Mac goes to sleep. Super frustrating to start containers all over again. Anyone have a fix or workaround? |
+1 I have the same issue on my Sometimes, I can just click on
|
Re a fix: Don't use native Docker.
The only think that seems to cause it problems is when my machine runs low on power (~5%) and something (OSX?) causes it to die/kills it. |
For those who are experiencing this issue, please could you post the output of |
👍 I have this issue as well, containers that were up when I close my lid are dead when I open it and log back in. @v4tech I'm not positive that "Don't use native Docker" is really a great solution here... On simple suspend/awake after a short period of time I don't need to restart but if it's been a while or I switch networks (e.g. VPN previously connected when lid was open and dies on lid close) I'll have to Quit the app and reload. Diagnostic Info:
For
|
Thanks @amilstead
This is really helpful. I have a theory about why this could be happening... It's possible this is related to OSX's "Safe Sleep" mode, which by the config above would happen 3hrs after your machine has been put in to Sleep. For others responding to this, please could you let us know "how long" it's been after closing the lid that you notice this issue - hopefully we'll start seeing some correlation between that and the And if you know anyone who, like me has done a As for the changing networks, this is know issue - I'm working on pushing a notification after a network change is detected to ask you if you want to restart. |
Awesome -- glad I could help! Should I try running |
@amilstead that's up to you...
I wouldn't recommend this as a fix to anyone unless you fully understand and are happy with the consequences 😀 |
Got it -- thanks! |
I'm also having this problem. Notably, I'm running under a modified hibernate mode (25) for better battery life. Diagnostic info:
pmset:
|
Deleted my previous comment and reposting with pmset data. I'm experiencing this as well, multiple times per hour after the lastest update. I do not have to suspend my computer for it to occur.
pmset output:
|
Same situation as @sambernard this is happening multiple times a day while I am using Docker after latest update.
pmset
|
@dave-tucker : It is definitely not three hours or anything similar... A much shorter time. Hi @amilstead, thanks, for your comments: Re:
Re: my 'don't use it' - there's two things to be taken from that:
|
I'm seeing this issue on my Mac with the latest Docker for Mac as well. Happens when I close my laptop lid for even a few minutes. As @v4tech mentioned, VirtualBox can survive multiple sleeps with no issues so odd that Docker does not do this. |
I see the same issue only after a few seconds of sleep.
pmset
|
I am seeing this all the time after the update, no suspend necessary. I've closed and restarted Docker client for Mac without any luck:
|
Is there any update on this issue? This is a real killer. |
We have not been able to reproduce this issue, unfortunately. Any and all information about your specific environment would be helpful. We are working on adding more diagnostic information regarding power events that may help us track down the cause in a future release. |
That is a true bummer 😢 Here's my diagnostic output:
And power settings:
|
Also, I tried setting In terms of time before I see the issue occur, it's hard to say, but I can say that I've seen it happen in as little as 15 - 20 minutes after my machine sleeps. |
@dsheets - What info would you like? I agree with @jamesdixon that this is a bummer, but as there are just soooo many of us with this problem we surely can get enough info for you. Going out on a limb with additional info: I don't know if this will be of assistance, but I've got a whole lot of homebrew packages installed - including Does anyone/everyone else use homebrew? More importantly, does anyone have a base install to test on? |
@v4tech I and all my colleagues who are experiencing the same problem are also using HomeBrew too |
I also have homebrew installed, but not heavily used whatsoever. Looking at everyone's responses, I was curious if this has something to do specifically with the Hypervisor implementation in Yosemite, but it also appears there were a couple who were using El Capitain. |
@v4tech yes, we believe this issue is fixed on 10.12 and 10.11.6 now that we have disabled the ACPI crash workaround by default on those versions. If you are upgrading from an older docker for mac then you will need to either follow the steps in #85 (comment) or perform a factory reset to pickup the new default. |
@v4tech @ijc25 I just tried the fix and it worked for me. My containers were not killed while my laptop was closed overnight. |
Reversion after latest update :( Hard-linking to fix so I can find it again without trying: #85 (comment) |
I am experiencing this issue while using docker-machine. Is there any connection between the two? |
I have this issue running Docker for Mac Edge on OS X 10.12.5. |
I also have this issue with Docker Community Edition v 17.03.1-ce-mac12 (17661) - channel stable. I've also tried pausing the docker image first, but still get a crash while it's paused: |
Running a Hackintosh on Sierra. My Docker seems to restart after sleep/wake. Running "Docker 17.06.0-ce-mac18" |
This is happening to me too: Version 17.06.0-ce-mac18 (18433) |
@ijc this needs to be reopened. I was able to reproduce it on 3 machines. Docker restarts every time machine goes to sleep. |
@dobegor could you upload diagnostics? Alternatively have a look in your logs for a line like this
If this line is present then the issue is the same as #1809, a fix for which is scheduled for 17.06.1 hopefully this week. In the meantime a workaround is to disable HTTP proxy tracking by: Whale menu -> Preferences... -> Proxies -> No Proxy. |
@djs55 where can I find logs? Diagnostics menu is just hanging for a long time. |
@djs55 found it. yes, it was the proxy change. I wonder why the hell it happens when I unplug the charging cable, though. Maybe OS X is doing some things with rearranging type-c connected devices (including type c ethernet bridge I have on the other port). |
|
Mine froze up last night: 91BA0B97-2185-40E4-8CF7-F4C94774E732 |
My containers still die immediately after suspend/resume. Docker Version: Version 17.06.0-ce-mac18 (18433) It seems that containers even die when you change settings in Energy Management of OSX (when you try to make your Mac always-on). This is a HUGE problem, renders Docker for Mac very-very hard to use. |
I'm now running 17.06.0-ce-mac17 (18432) and after changing the settings to "No proxy" I haven't had any problems. |
@DarkerMatter this solution worked for me too. |
The fix posted by @djs55 works for me (tested with manually triggering Sleep and also by closing the lid). Both 'No proxy' / 'Use system proxy' work fine. Longest time I kept the lid closed was ~30 min. I'm running:
Fix with minor adjustment:
|
Sadly the recurrence of both this issue and #1175 means that I've stayed with v1.13.0! It seems stable and hasn't caused me any problems. |
Hi. I'm a new Docker user. This is all a bit confusing. But me too!
I am running the High Sierra beta:
I haven't tried any of the above workaround disablers yet. Seems like black magic. But that's my next step. |
Same problem on Yosemite Version 17.12.0-ce-mac55 (23011)
|
I still have the same problem, running Mojave, version Version 2.0.0.0-mac81 (29211) everytime when mac wake up the docker shows the screen that allows you to reset it (but deletes everything) or exit. that's super annoying. Any help? PS: there's no looking into the logs, don't know if it can be of any help |
Closed issues are locked after 30 days of inactivity. If you have found a problem that seems similar to this, please open a new issue. Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. |
Expected behavior
When I suspend my machine, running containers continue at wake.
Actual behavior
When I suspend my machine, any running containers die with the error:
This is an issue that I raised 3 months ago... 12-May:
https://forums.docker.com/t/running-containers-die-when-machine-suspended/11976
Information
Diagnostic ID: 87389479-4F8F-4632-8BE8-591E5125A816
Docker for Mac: 1.12.0 (Build 10871)
macOS: Version 10.10.5 (Build 14F1909)
[OK] docker-cli
[OK] app
[OK] moby-syslog
[OK] disk
[OK] virtualization
[OK] system
[OK] menubar
[OK] osxfs
[OK] db
[OK] slirp
[OK] moby-console
[OK] logs
[OK] vmnetd
[OK] env
[OK] moby
[OK] driver.amd64-linux
Steps to reproduce
The text was updated successfully, but these errors were encountered: