-
Notifications
You must be signed in to change notification settings - Fork 289
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 Desktop running as scheduled task in Windows Server 2022 with no logged user not working #13790
Comments
Hey I have the exact same issue on my end. Tried it with Docker 25.1 on windows 11. Any solutions so far? My goal is to run a container when my windows machine boots, independent of user login. |
Hi, I have succeeded in getting docker to run without login as a task scheduler on windows10. This error means that there is an error in communication with docker's backend api server. When I run docker desktop directly, vmmem runs to occupy virtual memory and docker desktop api proxy for wsl2 runs. As it turns out, this is an issue with WSL.
now, my wsl version is 2.0.14.0 and docker desktop is 4.18.0.0. I'm using a translator, so I apologize if my English is weird. |
I can confirm I can run WSL2 (after the prerelease update) via Scheduled Task ... Yet Docker Desktop still doesn't work. Help ? |
@DevHHM does the same work on Windows 11 ? |
well... i don't know that. |
Can you post a detailed description of how you set it up? |
Description
I installed Docker Desktop with WSL engine to run a docker container in a Windows Server 2022. What I need is to create a scheduled task in Task Scheduler in order to run docker daemon/Docker Desktop with no user login.
I tried solutions like #2632 and https://stackoverflow.com/questions/51252181/how-to-start-docker-daemon-windows-service-at-startup-without-the-need-to-log but they don't work.
I created a scheduled task in Task Scheduler as:
where the ps1 script that is run contains the following:
I also tested it by running directly:
After created this task, once ensured all docker processes are down, when I click on Run to test it, on Task Manager I get several docker processes starting and running, but, if I open CMD and run
docker ps -a
to check if docker is running, I get the following message:Why a scheduled task is not able to run the docker daemon?
Reproduce
On Windows Server 2022, create a scheduled task to run at startup Docker Desktop application, and run the scheduled task to verify if the docker daemon is starting.
Expected behavior
Docker daemon running after running the scheduled task.
docker version
Client: Version: 24.0.7 API version: 1.43 Go version: go1.20.10 Git commit: afdd53b Built: Thu Oct 26 09:08:44 2023 OS/Arch: windows/amd64 Context: default Server: Docker Desktop 4.25.0 (126437) Engine: Version: 24.0.6 API version: 1.43 (minimum version 1.12) Go version: go1.20.7 Git commit: 1a79695 Built: Mon Sep 4 12:32:16 2023 OS/Arch: linux/amd64 Experimental: false containerd: Version: 1.6.22 GitCommit: 8165feabfdfe38c65b599c4993d227328c231fca runc: Version: 1.1.8 GitCommit: v1.1.8-0-g82f18fe docker-init: Version: 0.19.0 GitCommit: de40ad0
docker info
Diagnostics ID
A0E8E9B0-FC58-4DEF-9660-6E503734F8B8/20231110205349
Additional Info
No response
The text was updated successfully, but these errors were encountered: