-
Notifications
You must be signed in to change notification settings - Fork 344
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
Unable to start rootless container under Podman when in WSL #2484
Comments
Hey @Pvlerick ,thanks for reporting this. Can I ask you to check running youki 0.2.0 or older version, and see what is the error message? I think under wsl, we do not have systemd, so the changes in #2370 would not have any relation with this. If in youki 0.2.0 the error message is the same, then the wsl setup uses cgroups v2 manager and not systemd cgroups manager. If that is the case, then the cgroups v2 manager would be a good place to start looking. |
Using 0.2.0:
I'm running systemd in WSL:
If that gives you any idea, let me know :-) In any event, I'll start looking around cgroups manager. |
@Pvlerick May I ask you to use the latest version(v0.3.0)? |
@utam0k that's what I did initially #2484 (comment) I probably didn't explain myself very well; I tried under WSL with 0.3.0, 0.2.0 and the latest from master and I have similar errors. I tested under Ubuntu "bare metal" (no vm) and it works like a charm since 0.3.0. |
Turns out it's cgroup manager V1 that is used in the end:
Hacking in the code to force it to use V2 or systemd gets the same error, so I think there might be something other at play here. The plot thickens! :-) |
Hey @Pvlerick Thanks for the debugging! There is also #2528 which is related to a bug in cgroups v1 creation. Not sure if that would be the root cause, but can you try this PR branch #2532 which aims to fix that? If it does, then we might need to do something similar with cgroups v2 On the other hand, I'm not even sure if for rootless, we can use v1 or v2 directly... As we delegate the cgroup management to systemd when running rootless (as non-root, we don't have perms for manipulating cgroups) we need systemd to handle it for us... |
Under Ubuntu (not in WSL), it's indeed systemd that is used. I'll checkout that branch and see what happens, thanks for the pointers. |
Same error with #2532, unfortunately. |
@Pvlerick Hey, sorry I couldn't be of much help here, did you find out anything? I currently don't have access to WSL, so cannot re-produce this locally, but for rootless, the systemd cgroups manager must be used. |
@YJDoc2 no problem, I still have this issue on my radar but I don't have time to work on it right now. I'll eventually get to it, don't worry :-) |
Although #719 has been fixed in #2370 - I checked it using versions of Youki before and after under Ubuntu; the issue still remains when running in WSL.
youkidev
being defined in/usr/share/containers/containers.conf
as pointing to the latest build ofyouki
frommaster
I would be interested to work on this myself, but I'm ramping up on Rust right now. Any pointers to where to start appreciated, otherwise I'll just dig and dig more.
The text was updated successfully, but these errors were encountered: