-
Notifications
You must be signed in to change notification settings - Fork 286
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
Docker won't start containers after win 10 shutdown and power up. #1038
Comments
I have the same issue although I have observed it happening when just logging out and logging back into my OS account. A restart of the docker service is the work-around. I am on Windows 10 Pro version 10.0.15063.502. |
Still having this issue after latest docker and latest Win 10. Running linux containers to keep it consistent within our organization. Win version: |
Hi, having the same issue on my machine. Settings are nearly identical to the ones of @relnah. |
It seems the containers are still running ($docker ps) but the ports are no longer exposed (netstat -an). This is kinda frustrating and makes a multi-user or consecutive-session scenario inoperative. |
Same issue after latest update: diag id: |
And still here: Error response from daemon: Cannot restart container xxxxx: driver failed programming external connectivity on endpoint xxxxx (bb96658514789875b9aabda58ee4312d26cabab216c516f34bcf34075b1db9a0): Error starting userland proxy: mkdir /port/tcp:0.0.0.0:49161:tcp:172.17.0.2:1521: input/output error Diag: |
Exactly the same issue here, I have to restart it whenever I shut down - power up my PC. Docker info: Win 10 info: |
Same issue.
|
6 months later and I still have this issue. Hope they go bankrupt FFS Update: 6 months later and I have 7 down emojis. Sooo scarry. Thanks guys. You made my day 🥇 |
Same issue here. Shutting down Windows 10 with Docker For Windows running, but not set as "Start docker on login". After restart I start Docker for Windows manually and my containers that should start automatically starts (a RabbitMQ container). However, it's not accessable and if I try to restart I get the same "driver failed programming..." error... I have to stop Docker for Windows and start it again. |
when i sign out docker ,then sign in, the container can't just quit docker and restart docker ,the container goes well. my OS is win10 maybe restarting docke is a helpful way to solve problems of windows |
same here, always have to restart docker after loging in to Win. |
Is this a Docker issue, or a Hyper-V issue? Not sure. See https://forums.docker.com/t/overlay-network-broken-after-resuming-from-sleep/37376 |
same problem here |
same problem here |
1 similar comment
same problem here |
I have the same issue as well. Frustrating. |
I also have the same problem. |
i have found a solution on a other thread. The problem relies on the hybrid shutdown mode from the lastest win 10 updates. After disable it under energy options, the problem is solved for me. |
restart of the docker after win10 boot up worked for me. |
As @Christowiak say, Turn off |
I have the same issue, only that I can't see any containers; docker ps returns nothing |
docker ps -a your containers are probably stopped still you''ll need to start them unless you set them to auto-restart |
Yep. As @Christowiak said, I turn off Windows' fast startup and it goes fine. |
Turning off OS features on my computer just to get Docker to work normally isn't really a soulution. A temporary workaround perhaps. So the issue is still valid. |
I couldn't find any UI to disable the hybrid shutdown mode as @Christowiak pointed out, so I went directly to regedit and created a More details on that property can be found in Winlogon Automatic Restart Sign-On (ARSO) |
@NestorDR thanks for this. If we were to disable Docker's automatic startup on login in Docker Settings, then could we run your script instead, but without having to wait for Docker to stop? |
Easier methods for managing the "fast startup" mode via cmd.exe / PowerShell: Turn on
Turn off
More Information / Other methodshttps://www.tenforums.com/tutorials/4189-turn-off-fast-startup-windows-10-a.html |
@mfoulds The problem arises because Docker does not stop formally at shutdown Windows, so the Docker must be started, in order to stop it formally. |
We're currently working on several issues and have a first edge preview to download which solves the problem with the "fast startup" mode in our test environment. It even restarts containers after a reboot and login that were started with the restart option eg. |
@StefanScherer Unfortunately unable to install on Microsoft Windows Server 2016 Standard (10.0.14393 Build 14393), it says" Docker Desktop requires Windows 10 Pro or Enterprise version 15063 to run." :/ |
Downloading and trialing right now... |
and after leaving some docker containers running, shutting down pc for 6 hours then restarting I get a crash from docker on starting (replicated multiple times) error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.40/containers/json: open //./pipe/docker_engine: The system cannot find the file specified. In the default daemon configuration on Windows, the docker client must be run elevated to connect. This error may also indicate that the docker daemon is not running. at Docker.Backend.DockerDaemonChecker.Check(Func`1 isDaemonProcessStillRunning) Lucky at this point of using docker on windows for the last 3 years I've become apathetic to announcments and new versions of docker solving anything. |
@mcopjan Docker Desktop is for developer machines, not Windows Server. For Windows Server please see Docker Enterprise for Windows Server -> https://docs.docker.com/install/windows/docker-ee/ @nrjohnstone can you confirm Docker Desktop is set to startup on boot and not disabled in the windows startup tasks. Can you then check the status of your whale icon in your systray (if its broken, it will be red. If its not started at all it won't be there.) Assuming all this is fine can you then upload your log file or a diagnostic? The error message you posted just says docker isn't running, so diagnosing that will need more info. Thanks! |
@mikeparker thanks, I installed docker EE on WS 2016, problem is I cannot switch into linux containers (I assume it is not supported?) So I am still stuck with Docker for Windows experiencing the reported issue. |
@mikeparker I can confirm the following I have to uninstall and revert back to the build from last year that I've been running as I don't really have the time to be a beta tester for this scenario. I have uploaded the error log though. I guess it's back to force killing docker to restart on every windows login again. |
@nrjohnstone I don't know if you will find either of these less painful than force killing docker:
The other annoying thing I've not managed to find a work around for is if I'm using docker and shut my laptop... Then open my laptop a bit later, the whole machine has effectively crashed and windows starts up from scratch instead of waking from sleep. (this only happens if docker is running, fine if it's not). |
Hi, I am a user of Brazil and have experienced an error in my attempts to install [nwabap751] from the command line of my Linux container Ubuntu into Docker. The message appears on my screen:PS C:\INST> docker run -p 8000:8000 -p 44300:44300 -p 3300:3300 -p 3200:3200 -h vhcalnplci --name nwabap751 -it nwabap751 /bin/bash
|
Error:
For me: Solved by just Docker Restart (not OS). docker version
|
This one worked for me. |
After upgrade to latest stable Docker (2.1.0.1) my case now works without any workarounds, like disabling OS features. I select to have Docker start on start up, I create a container with --restart unless-stopped. I'm running linux containers. Version info: Thanks for the fix ;) |
This also seems to be working for me without workarounds in 2.1.0.1 now. Good job! 👍 |
Restart didn't worked for me (tried multiple way to restart Docker), neither did disabling the "Experimental features" (as it were already disabled, anyway). We tried so much things, but we ended up doing a "Reset to factory" from Docker Desktop GUI, and magically, it worked again. But man, I hate it when docker network or something have a corrupted state, it happens way too often. Plus, the issue that I have to effectivly restart Docker at each Windows start, but here, changing the shutdown strategy, like other users suggested, to "not fast startup" did the trick. |
2.1.0.1 fixed it. Has been working well for a couple of weeks. |
I'm was already in version 2.1.0.1 (build 37199) when I had the issue I described earlier. So it has to be something else. I'll create an issue if I have the problem again anyway. |
Still the same issue on 2.1.0.1 (build 37199) |
docker run fails on Windows 10:
docker version:
Note about Docker version: The docker installer keeps hanging, see #1172 (comment) Trying to restart docker: |
Had an similar error. Restarting the system fixed it for me. Apparently the system tried at some point an shutdown but it was interrupted. While trying to shutdown the OS stopped some services or driver required for docker. |
Disabling fast startup worked for me! |
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
After shuting down win 10 normally and with a working docker running, docker should be running as normal after powering up win 10.
Actual behavior
Starting containers fails with: Error response from daemon: Cannot restart container my_container: driver failed programming external connectivity on endpoint my_container (782f444833c57027050a58f8c0302473f76d9029a50944960d13c6ed940a4392): Error starting userland proxy: mkdir /port/tcp:0.0.0.0:49161:tcp:172.17.0.2:1521: input/output error
docker compose up hangs.
Restart of docker engine will make it work again.
Information
Diagnostic ID 18D5608F-3086-460D-BD15-84F84F2C55D6/2017-08-25_08-09-32
Docker info:
Version 17.06.1-ce-win24 (13025)
Channel: stable
54dc09c
Win 10 info:
Edition: Windows 10 Enterprise x64
Version: 1703
OS Build: 15063.540
CPU: Inter Core i7-6600U 2.6GHz
RAM: 16 GB
Steps to reproduce the behavior
The text was updated successfully, but these errors were encountered: