-
hey guys, sorry for a kinda newbie question but I am new in the container universe and wonder how I manage to login to a shell of a running container. Each container has an own user which is also set in the systemd service. The containers work and all run with unpriviliged users but I can't manage to log into their shells. I have an account with sudo rights where I do the management and set up podman (uid=1000). From there I was able to do a podman ps of other containers with something like:
Like that I can also see the container ID. But how am I able to connect to the shell? I adjusted the command Then I also tried to switch to the user which runs the container to enter the shell from there but then I get: What am I doing wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You need a full login session to run podman. Try:
Although I don't really understand your goal. |
Beta Was this translation helpful? Give feedback.
-
You might be looking for podmansh as well $ man podmansh |
Beta Was this translation helpful? Give feedback.
You need a full login session to run podman. Try:
# machinectl shell -q USERNAME@ /usr/bin/podman exec ...
Although I don't really understand your goal.