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
Containers don't start on Fedora CoreOS because there's no 'sudo' group inside the container #423
Comments
|
I experience the same issue with the testing release Fedora CoreOS 31.20200420.2.0 |
|
Having exactly this issue with Fedora CoreOS 31.20200323.3.2 EDIT: And 31.20200407.3.0 too |
|
Interesting. Usually on Fedora, you only have the This error is coming from |
|
Looks the same overhere. I pasted the last paragraph of the file here: |
|
Could this be related to the fact that we're running rootless podman (under user |
|
this appears to be a fedora coreos specific problem, coreos/fedora-coreos-tracker#458 (comment) |
|
I get the same error on ArchLinux, when starting a podman container (or toolbox container): sudo group and subuid, subgid are in place. I have never tried podman or toolbox before, so I cannot say "it worked before". Happy to provide further details. |
|
I've just installed the toolbox on fedora server 32, and i get the same error |
|
I had this error too, using Debian. toolbox works fine using podman from the repositories (v1.6.4) and fails when I installed the latest version (v1.9.3) manually. All my Fedora based toolboxes presented this error, but my Debian based ones didn't. What happens is that when creating the container, toolbox passes The problem is that during I don't think it's useful to add that given that |
Don't call get_group_for_sudo() on the host during create(). That runs on the host, and thus will check which sudo group exists on the host. But that is entirely irrelevant for sudo inside the container, and it breaks when trying to create a Debian or Ubuntu based toolbox on a Fedora host (or vice versa). This also causes problem on CoreOS[0][1] Also, there is no point in running the `podman create` command with an extra sudo group, normal user privileges are just fine. init_container() will call get_group_for_sudo() inside the container and initialize the groups correctly there. containers#401 [0] containers#423 [1] coreos/fedora-coreos-tracker#458
|
Looks like the patch from #401 had an unintended side-effect. Earlier, inside the container, we'd get: ... but now: Notice how the |
Hello,
I am trying to run toolbox on a Fedora CoreOS instance without any luck. The Toolbox is created as expected and without any errors, but entering the toolbox results in:
When i cat /etc/group i can see sudo does exist and that my user core is a member
Running the commands as sudo (sudo toolbox create) results in a whole other error i won't bring up here unless requested.
I am running the most recent release
What am i missing here? What am i doing wrong?
Regards, Peter
The text was updated successfully, but these errors were encountered: