Skip to content

Restart Policies on Windows Containers still not working on server reboot #33542

@drnybble

Description

@drnybble

Description

Defect #27544 describes a problem where the Docker service does not have a dependency on ConDrv and this causes containers to not start on a system reboot.

Although that issue is Closed the problem does not appear to be fixed.

Steps to reproduce the issue:

  1. Follow the steps at https://store.docker.com/editions/enterprise/docker-ee-server-windows to install Docker for Windows 2016:

Install-Module -Name DockerMsftProvider -Force
Install-Package -Name docker -ProviderName DockerMsftProvider -Force
Restart-Computer -Force

  1. Check the service configuration: Open a CMD prompt and type sc.exe qc docker

  2. Check Dependencies, it should show ConDrv

Describe the results you received:

Dependencies is blank. Confirmed on multiple systems.

Describe the results you expected:

Dependencies includes ConDrv.

Additional information you deem important (e.g. issue happens only occasionally):

Output of docker version:

PS C:\Users\Administrator> docker version
Client:
 Version:      17.03.1-ee-3
 API version:  1.27
 Go version:   go1.7.5
 Git commit:   3fcee33
 Built:        Thu Mar 30 19:31:22 2017
 OS/Arch:      windows/amd64

Server:
 Version:      17.03.1-ee-3
 API version:  1.27 (minimum version 1.24)
 Go version:   go1.7.5
 Git commit:   3fcee33
 Built:        Thu Mar 30 19:31:22 2017
 OS/Arch:      windows/amd64
 Experimental: false
PS C:\Users\Administrator>

Output of docker info:

Client:
 Version:      17.03.1-ee-3
 API version:  1.27
 Go version:   go1.7.5
 Git commit:   3fcee33
 Built:        Thu Mar 30 19:31:22 2017
 OS/Arch:      windows/amd64

Server:
 Version:      17.03.1-ee-3
 API version:  1.27 (minimum version 1.24)
 Go version:   go1.7.5
 Git commit:   3fcee33
 Built:        Thu Mar 30 19:31:22 2017
 OS/Arch:      windows/amd64
 Experimental: false
PS C:\Users\Administrator> docker info
Containers: 1
 Running: 1
 Paused: 0
 Stopped: 0
Images: 171
Server Version: 17.03.1-ee-3
Storage Driver: windowsfilter
 Windows:
Logging Driver: json-file
Plugins:
 Volume: local
 Network: l2bridge l2tunnel nat null overlay transparent
Swarm: inactive
Default Isolation: process
Kernel Version: 10.0 14393 (14393.1198.amd64fre.rs1_release_sec.170427-1353)
Operating System: Windows Server 2016 Standard
OSType: windows
Architecture: x86_64
CPUs: 4
Total Memory: 16 GiB
Name: WIN-MJSFDPF05F4
ID: TWMY:IFT5:SD65:U72L:6TEM:UKYA:KDMS:JQC3:VQKN:7UGR:57IB:G23Q
Docker Root Dir: C:\ProgramData\docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Experimental: false
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false

Additional environment details (AWS, VirtualBox, physical, etc.):
@darrenstahlmsft

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions