The auto-start option set in Docker for windows is It is a setting that the docker service does not start unless you log in once after starting up. Windows 10 Pro machines for verification and development have recently been frequently restarted with updates. I want to create a state where the docker service is running when the power is turned on.
Docker
Windows Edition: Windows 10 Pro Version: 1909 OS build: 18363.1082
The method itself is a 1 minute delayed task scheduler that was discussed in the forum. https://forums.docker.com/t/run-docker-as-a-service/28124 The conclusion is to create a local user and run it one minute later.
Enter user information that can run Docker
Start Windows (including security update) + 1 minute delay + Start Docker Sometimes I have to wait long enough for the instant noodles to swell.
The container seems to be working, but the Docker for windows dashboard is stuck.
The same applies even if changed to the following. Program / Script (P): C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe Add argument (optional) (A): -File C:\start.ps1
start.ps1
start "C:\Program Files\Docker\Docker\Docker Desktop.exe"
start-service -Name com.docker.service
Also check that the user set by Task Scheduler belongs to docker-user. Currently clogged.
Recommended Posts