-
Notifications
You must be signed in to change notification settings - Fork 18.9k
Open
Labels
Description
Description
Windows Server 2016 does not start containers automatically on boot, even though the containers have been started with --restart always parameter.
Steps to reproduce the issue:
- Open up elevated PowerShell.
- Create a custom Docker network (driver nat), named
blaa. - Run a container like this:
docker run -d --restart always --network blaa --name testcontainer -p 8080:80 microsoft/dotnet-samples:aspnetapp. - Execute
Restart-Computer. - 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:
759d3619d63682bf4039d1d7d1266652656a526f7b35b1def0cc24a5c8f1f5a6 cleanup: failed to delete container from containerd: no such container
Failed to start container 759d3619d63682bf4039d1d7d1266652656a526f7b35b1def0cc24a5c8f1f5a6: network f59a30f5c1469916f78cc685284e8655438e2777559cf6ff59156eab7f576b0b not found
docker network ls shows that the network blaa exists.
Output of docker version:
Client:
Version: 18.09.2
API version: 1.39
Go version: go1.10.6
Git commit: 1ac774dfdd
Built: unknown-buildtime
OS/Arch: windows/amd64
Experimental: false
Server:
Engine:
Version: 18.09.2
API version: 1.39 (minimum version 1.24)
Go version: go1.10.6
Git commit: 1ac774dfdd
Built: 02/10/2019 04:13:25
OS/Arch: windows/amd64
Experimental: false
Output of docker info:
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 9
Server Version: 18.09.2
Storage Driver: windowsfilter
Windows:
Logging Driver: json-file
Plugins:
Volume: local
Network: ics l2bridge l2tunnel nat null overlay transparent
Log: awslogs etwlogs fluentd gelf json-file local logentries splunk syslog
Swarm: inactive
Default Isolation: process
Kernel Version: 10.0 14393 (14393.2848.amd64fre.rs1_release.190305-1856)
Operating System: Windows Server 2016 Datacenter Version 1607 (OS Build 14393.2848)
OSType: windows
Architecture: x86_64
CPUs: 2
Total Memory: 8GiB
Name: sdgfsdfg
ID: IVVJ:4PP7:T5HM:IDUK:FUSD:L7LZ:LDMM:ERCF:HDZE:SSDJ:GAAD:XBNA
Docker Root Dir: C:\ProgramData\docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
Additional environment details (AWS, VirtualBox, physical, etc.):
Windows Server 2016 running in Azure.
Reactions are currently unavailable