Docker EE on Win 2016: The service will not automatically start

Background

I have installed Docker EE on a new copy of Windows 2016 using the following PowerShell commands as recommended in the Docker page (click here):
Install-Module DockerMsftProvider -Force
Install-Package Docker -ProviderName DockerMsftProvider -Force

Open in new window


Problem

Docker appears to have installed correctly (the 'Program Files' folder has been created, the service has been created and the basic 'Hello World' test was successful) but the service will not automatically start with Windows.

Keep in mind:
  • The service startup type is definitely set to 'Automatic'.
  • There is no error recorded in the Windows Event Logs.
  • One started the service stays running without generating any errors in the event log.

Question

Has anyone had the same issue ?
Can anyone suggest what the issue is because I can find nothing via the web ?
LVL 3
AL_XResearchAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Sudeep SharmaTechnical DesignerCommented:
As stated in the link you shared in Step 2, if the reboot is required?

(Install-WindowsFeature Containers).RestartNeeded

Also in the powershell script on the same page they have registered the service as well using the command:

# Register the Docker daemon as a service.
dockerd --register-service

Also from the site

(optional) Make sure you have all required updates

Some advanced Docker features, such as swarm mode, require the fixes included in KB4015217 (or a later cumulative patch).

sconfig

Select option 6) Download and Install Updates.


Let us know if these are checked.

Thanks,
Sudeep
AL_XResearchAuthor Commented:
Hi Sudeep - thanks for the quick response.

(Install-WindowsFeature Containers).RestartNeeded

Yes I did this and yes I restarted the machine before attempting to test / use Docker.

dockerd --register-service

A) If you look again this is part of the 'install docker with a script' instructions - not the instructions for installing manually which are above. I agree the page is quite confusing and needs to be laid out better for clarity.

B) The only function of that command is to register Docker as a service. That has already happened - it just won't automatically start even though it is set as such

Select option 6) Download and Install Updates

Before I started I made sure all the latest Windows updates had been downloaded and installed

Additional question background

I am installing Docker only to run third-party software based on Docker and it uses a single node only - so a 'swarm' is not a factor here

Please keep those suggestions coming ...
Sudeep SharmaTechnical DesignerCommented:
Could you let me know what are the different settings of the service in registry?

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\

Select the Docker service and tell us what is the REG_DWORD values for Start and Type.

Thanks,
Sudeep

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
AL_XResearchAuthor Commented:
Docker registry
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows OS

From novice to tech pro — start learning today.