-
Notifications
You must be signed in to change notification settings - Fork 279
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
Containers don't restart with docker service (2.1) #4463
Comments
Thanks for reporting. Windows container not restarting is tracked in moby/moby#39623 |
Sounds good, thanks for the heads up! |
Fix is in the works; moby/moby#39703 |
Awesome, thanks! Is there anything I can do to help with testing? |
Docker Engine ("daemon") builds from master will be available on https://master.dockerproject.org (I don't think the current build already has the fix); the fix will be included in the upcoming Docker Engine 19.03.2 patch release (and included in the corresponding Docker Desktop patch release). |
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 the docker service is restarted, containers with an always restart policy are restarted.
Actual behavior
When the docker service is restarted, container with an always restart policy are in an Exited status.
Information
This looks to be an issue restricted to the Windows daemon based on observations with Experimental Features.
Going through the logs, this stuck out at me:
I'm also suspicious that this is related to #4399 and #4056, but I don't seem to get logs on system shutdown.
Steps to reproduce the behavior
Experimental Features On - Windows and Linux containers
docker run -d --restart always alpine watch ps -ef
to start a linux containerdocker run -d --restart always mcr.microsoft.com/windows/nanoserver:1903 ping -t localhost
to start a windows containerdocker ps
, you'll see the containers are up and runningdocker ps -a
, you'll see the containers are not running, but are in an exited stateExperimental Features Off - Windows Containers
docker run -d --restart always mcr.microsoft.com/windows/nanoserver:1903 ping -t localhost
to start a windows containerdocker ps
, you'll see the containers are up and runningdocker ps -a
, you'll see the container is not running, but is in an exited stateExperimental Features Off - Linux Containers
docker run -d --restart always alpine watch ps -ef
to start a linux containerdocker ps
, you'll see the containers are up and runningdocker ps -a
, you'll see the container is still runningThe text was updated successfully, but these errors were encountered: