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
After Windows Server 2019 boot containers not starting #39623
Comments
We can also see this on all our Windows Server 2019 + Docker 19.03.1 servers. I took debug logs from one of the by disabling Docker service auto start and started it manually with command dockerd -D:
On this case Docker was actually saying that container was running:
but in reality it was not. It can be seen by trying to execute something inside of it:
which sounds same than #39354 (comment) Interesting part of log is:
because if it looks to be that containerd.Restore() gets called and it does not return any error but it also does not return alive flag: Lines 318 to 342 in bad0b4e
so can it be that restore actually fails on containerd side but it does not get written to log? @jhowardmsft any ideas? cc @thaJeztah |
And I just tested that same issue happens also on Windows Server 2016 + Docker 19.03.1 combination. |
ping @ddebroy @vikramhh @simonferquel PTAL opened internal ticket ENGCORE-929 for this |
As mentioned in my ticket, I noticed the issue with restarts of the docker service in Windows 10, and these logs stood out to me during the stop portion of restart:
|
Fix is in the works; #39703 |
Description
Windows Server 2019 does not start containers automatically on boot, even though the containers have been started with --restart always parameter.
Steps to reproduce the issue:
When the machine starts up, execute docker ps.
Describe the results you received:
docker ps shows that no containers are running.
Describe the results you expected:
docker ps lists the container named testcontainer.
Additional information you deem important (e.g. issue happens only occasionally):
Happens all the time.
Windows Event Log shows errors like this:
Failed to delete container 80e440a586087ed6dd1bf14bb152061eadf15d5343a2dcf6b5b2dd14e0ad98fd from containerd [error=no such container]
Output of
docker version
:Output of
docker info
:Additional environment details (AWS, VirtualBox, physical, etc.):
Windows Server 2019 (Version 1809)
The same stuff worked in a older Windows Server 2016 environment (with a much older docker version).
I guess this is related to this issue:
#38911
I also tried this, but this should already be fixed :/
#33542
My workaround (which only work in some scenarios): Use a scheduled task to start all stopped contains like this:
The text was updated successfully, but these errors were encountered: