Skip to content

Windows: Add service dependency ConDrv#30111

Merged
thaJeztah merged 1 commit intomoby:masterfrom
darstahl:DependsConDrv
Jan 26, 2017
Merged

Windows: Add service dependency ConDrv#30111
thaJeztah merged 1 commit intomoby:masterfrom
darstahl:DependsConDrv

Conversation

@darstahl
Copy link
Copy Markdown
Contributor

Signed-off-by: Darren Stahl darst@microsoft.com

Fixes #27544

Added a service dependency on the Console Driver, which is necessary for using Windows Server Containers (The missing dependency was causing failure to launch processes in containers shortly after a host reboot).

cc @jhowardmsft @jstarks

@lowenna
Copy link
Copy Markdown
Member

lowenna commented Jan 12, 2017

Tentative LGTM - need to ensure this is on nanoserver without the EMS too. Will have an answer soon.

@thaJeztah this is probably also one which should be strongly considered for 1.13 to ensure containers configured for restart always do indeed restart across reboots of the host

@thaJeztah
Copy link
Copy Markdown
Member

Can we make these service-definitions external, like (I know Linux is different), https://github.com/docker/docker/tree/master/contrib/init ?

It feels "odd" to define the service in the binary itself, and something that should be related to packaging. /cc @johnstep @andrewhsu

@simonferquel
Copy link
Copy Markdown
Contributor

I think that having a separate script doing service registration would be preferable. It could even be integrated to the provided installation script. See : https://msdn.microsoft.com/en-us/powershell/reference/5.1/microsoft.powershell.management/new-service for documentation on how to install a service with Powershell.

@lowenna
Copy link
Copy Markdown
Member

lowenna commented Jan 13, 2017

Honestly there is no need or reason to have this external

@cpuguy83
Copy link
Copy Markdown
Member

ping @johnstep

Copy link
Copy Markdown
Member

@johnstep johnstep left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

While I understand the concerns about internal registration, I think there is no cause for concern here. Logically, the service configuration, especially dependencies, belongs with the service itself. I do most definitely prefer a declarative approach, but a standardized one, not a script. In the future, I sure hope this can be achieved through a standardized Windows app package.

Copy link
Copy Markdown
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for looking @simonferquel @johnstep

Let me LGTM

@thaJeztah
Copy link
Copy Markdown
Member

ping @jhowardmsft can you confirm if this is ready to go (re: #30111 (comment))?

@lowenna
Copy link
Copy Markdown
Member

lowenna commented Jan 17, 2017

Yup, just confirmed. But there should be a minor change to this to remove the dependency for builds >14393 as the dependency is in the platform post-RS1.

Signed-off-by: Darren Stahl <darst@microsoft.com>
@darstahl
Copy link
Copy Markdown
Contributor Author

Updated per latest comment RE only adding this dependency in RS1

@lowenna
Copy link
Copy Markdown
Member

lowenna commented Jan 17, 2017

Thanks @darrenstahlmsft. LGTM.

@vieux
Copy link
Copy Markdown
Contributor

vieux commented Jan 26, 2017

LGTM

@thaJeztah
Copy link
Copy Markdown
Member

All green, merging

@thaJeztah thaJeztah merged commit fe5f496 into moby:master Jan 26, 2017
@vieux vieux mentioned this pull request Jan 26, 2017
@darstahl darstahl deleted the DependsConDrv branch May 10, 2017 00:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Restart Policies on Windows Containers not working on server reboot

8 participants