Skip to content
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

Docker deamon only starts on login #2632

Open
Dawnkeeper opened this issue Sep 20, 2018 · 7 comments
Open

Docker deamon only starts on login #2632

Dawnkeeper opened this issue Sep 20, 2018 · 7 comments

Comments

@Dawnkeeper
Copy link

Expected behavior

Be able to get the demon running without logging into the machine

Actual behavior

Login required to start docker.

Information

  • Windows Version: Win10 V 1607 (OS Build 14393.2363)
  • Docker for Windows Version: 18.06.1-ce-win73 (19507)

Both services "DockerEngine" and "Docker for Windows service" are set to start automatically

@docker-robott
Copy link
Collaborator

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale comment.
Stale issues will be closed after an additional 30d of inactivity.

Prevent issues from auto-closing with an /lifecycle frozen comment.

If this issue is safe to close now please do so.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows.
/lifecycle stale

@Dawnkeeper
Copy link
Author

/lifecycle frozen

@Dawnkeeper
Copy link
Author

/remove-lifecycle stale

@Dawnkeeper
Copy link
Author

Some more interaction than just a robot would be nice.

@sabujp
Copy link

sabujp commented Mar 18, 2019

This is a very annoying issue where we have to create our own task scheduler startup scripts or secondary services for something that should automatically be handled by Docker. Please fix this bug. FWIW I have a powershell script that does this on startup as a workaround:

$docker_wait = 25
function Restart-Docker {
  net stop docker
  net stop com.docker.service
  taskkill /IM 'dockerd.exe' /F
  taskkill /IM 'Docker for Windows.exe' /F
  net start docker
  net start com.docker.service
  Start-Process 'c:\program files\docker\docker\Docker for Windows.exe'
}

# Docker For Windows.exe might not be immediately ready
$sleep_multiplier = 0
do {
  Restart-Docker
  $sleep_seconds = $docker_wait * ++$sleep_multiplier
  Write-Output "Sleeping for $sleep_seconds seconds"
  Start-Sleep $sleep_seconds
  docker images
} while ($LASTEXITCODE -ne 0)

@sabujp
Copy link

sabujp commented Mar 18, 2019

how do we update the version label on this to the most recent stable one? This is actually a regression from 18.01 I think.

@pleonex
Copy link

pleonex commented Feb 14, 2020

This is making Docker really difficult to use in CI build servers. Every time the build server restarts some admin must login into it just to make Docker starts or make some custom scripts that must be maintained...

PS: one year and half without maintainers interaction. Good way to handle the community. Even if it's not in your priorities it would be great to say that and confirm this limitation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants