[SOLVED] Can't run rootless container using podman?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Sorry to constantly be posting to this forum, but I can't find any answers online - at least nothing is relevant to this particular case:
When trying to run:
podman run --name my-container ubi8
WITHOUT sudo
I receive this error:
"Error: OCI runtime error: crun: sd-bus call: Transport endpoint is not connected"
Has anyone seen this before? I'm running rhel 9.0 and podman 4.0.2
I'm studying for the RHCSA and need to be able to run rootless containers for the exam
This ONLY happens when running as ROOTLESS, meaning running it as a user who is not root, without sudo, and the user is apart of the wheel group.
Should I be running this command with sudo? I thought rootless meant you weren't supposed to run the command with sudo?
Last edited by shanebagel; 08-02-2022 at 06:34 PM.
Sorry to constantly be posting to this forum, but I can't find any answers online - at least nothing is relevant to this particular case:
When trying to run:
podman run --name my-container ubi8
WITHOUT sudo
I receive this error:
"Error: OCI runtime error: crun: sd-bus call: Transport endpoint is not connected"
Has anyone seen this before? I'm running rhel 9.0 and podman 4.0.2
I'm studying for the RHCSA and need to be able to run rootless containers for the exam
This ONLY happens when running as ROOTLESS, meaning running it as a user who is not root, without sudo, and the user is apart of the wheel group.
Should I be running this command with sudo? I thought rootless meant you weren't supposed to run the command with sudo?
For podman command, have you tried to set "log-level to debug" to see if there is anything more helpful?
So I'm getting:
"Error:OCI runtime error: crun: sd-bus call: Transport endpoint is not connected: transport endpoint is not connected"
This is what I get when I run the --log-level debug flag after the command.
Any ideas how to solve this or where I can look? I've tried this on multiple VMs running various distros (Fedora/CentOS/RHEL).
WOAHH I totally figured out what I was doing wrong:
Found this answer: "You cannot use su as this does not create a proper user session. It also leaks the XDG_RUNTIME_DIR env var from the root user (/run/user/0).
Try to change the user with su --login or sudo -i -u user."
I'm getting tons of errors because I was using su to switch users accounts, which was causing issues with the environment variables that podman needs to run, so now I should be able to run all podman commands without sudo or as root!!!!!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.