[Help] Docker for windows 2.3.0.4 without login Service startup method does not work [Help]

About login problems

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.

environment

Docker image.png

Windows Edition: Windows 10 Pro Version: 1909 OS build: 18363.1082

Prior knowledge

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.

Method

1. Start the task scheduler

image.png

2. Select Create Task from Task Scheduler

image.png

3. Create task

3.1 General tab

image.png

3.2 Trigger tab

image.png

image.png

3.3 Operation tab

image.png

image.png

Enter user information that can run Docker image.png

4. Restart Windows.

Start Windows (including security update) + 1 minute delay + Start Docker Sometimes I have to wait long enough for the instant noodles to swell.

Current results

The container seems to be working, but the Docker for windows dashboard is stuck. image.png

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

[Help] Docker for windows 2.3.0.4 without login Service startup method does not work [Help]
WSL2 + Docker Desktop for Windows does not launch only MySQL container
Docker Desktop for Windows 2.4.0.0 (48506) Startup error after update
Docker for Windows: MySQL container does not start when migrating from Hyper-v to WSL2
When Docker for Mac 2.4.0.0 does not reflect file changes
Sidekiq-limit_fetch does not work
Docker does not work when DOCKER_HOST is specified in WSL2