-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Can't boot Ubuntu with systemd on WSL with genie #11266
Comments
Thanks for reaching out. Running systemd inside a container requires systemd on the host but WSL does not (yet) support systemd (see microsoft/WSL#994). I fear there's nothing we can do at the time. |
We heard in yesterdays community meeting about systemd running in WSL2? |
It's not officially supported yet. There are custom scripts on the web that claim to get it working though. |
Update: this issue was opened in error, there was a problem with my configuration. I am running WSL with systemd via genie. With this Dockerfile:
I can successfully run the container, get a systemd startup log and a login prompt. Hope this helps someone - I can provide more details if needed. |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
A container with Ubuntu and systemd enabled won't start under WSL. I'm not able to confirm if this happens on regular Linux.
Steps to reproduce the issue:
Dockerfile:
podman build . --tag ubuntu-systemd
podman run -ti ubuntu-systemd
Describe the results you received:
Terminal dump:
Describe the results you expected:
A root prompt.
top
showssystemd
as PID 1.systemctl
shows system running normally.Additional information you deem important (e.g. issue happens only occasionally):
Running on WSL, getting systemd via genie
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https:/containers/podman/blob/master/troubleshooting.md)
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
WSL with systemd via genie.
The text was updated successfully, but these errors were encountered: