-
Notifications
You must be signed in to change notification settings - Fork 823
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
service docker start doesn't work if systemd is enabled #12307
Comments
Logs are required for review from WSL teamIf this a feature request, please reply with '/feature'. If this is a question, reply with '/question'. How to collect WSL logsDownload and execute collect-wsl-logs.ps1 in an administrative powershell prompt:
The script will output the path of the log file once done. If this is a networking issue, please use collect-networking-logs.ps1, following the instructions here Once completed please upload the output files to this Github issue. Click here for more info on logging View similar issuesPlease view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it! Closed similar issues:
|
@prescriptionlifeline Here's sample output on WSL Ubuntu 24.04:
|
In my case I was using Ubuntu 22.04 - not Ubuntu 24.04. I'll try it under Ubuntu 24.04 when I'm back in the office. Per the |
@prescriptionlifeline Are you using docker-ce from the Ubuntu package repository or installing using the Docker apt repository? I would suggest installing from the Docker apt repository. |
@sirredbeard - I installed Docker thusly (I have a private wiki entry with instructions on how to setup my WSL install to my liking, hence my having the steps I used readily available):
|
Okay, that rules out issues with the distro-based package. I took a look back at your log files and noted this:
It seems like Docker is still running. Do you have Docker Desktop installed? Do you have another distro with Docker running? Is it possible you have Docker installed twice, like from the distro package repo and from the Docker apt repo? |
The answer to all your questions is no. That said I did some further testing. The problem only occurs if both
...or:
If my wsl.conf file just has this it works just fine:
Like I can do Likewise if my wsl.conf file just has this in it it works just fine:
Like I can do
So why would the two options work in isolation but not together? |
Windows Version
Microsoft Windows [Version 10.0.26100.2314]
WSL Version
2.3.26.0
Are you using WSL 1 or WSL 2?
Kernel Version
Linux version 5.15.167.4-microsoft-standard-WSL2 (root@f9c826d3017f) (gcc (GCC) 11.2.0, GNU ld (GNU Binutils) 2.37) #1 SMP Tue Nov 5 00:21:55 UTC 2024
Distro Version
Ubuntu 22.04.3 LTS
Other Software
docker --version
(in WSL / Ubuntu) returns this:wsl --version
(in Windows) returns this:Repro Steps
service docker start
Expected Behavior
I'd expect
service docker start
to run without error.Actual Behavior
service docker start
gives this error:Diagnostic Logs
Here's the output of
systemctl status docker.service
:Here's the output of
journalctl -xeu docker.service
:https://pastebin.com/5u5vWS87
If I have this in my
/etc/wsl.conf
fileservice docker start
doesn't work:If I comment out the
systemd=true
bitservice docker start
works but not with that line in place.The text was updated successfully, but these errors were encountered: