Rootless Podman unable to run any commands without running podman container with "--priviliged" or "--security-opt seccomp=unconfined" #24514
jaden-patel
started this conversation in
General
Replies: 2 comments
-
This is a Docker issue, Docker blocks the mount and unshare syscalls, which prevents the user of a user namespace from within a container. Podman by default does not block these syscalls. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I am unable to get https://docs.gitlab.com/runner/executors/kubernetes/use_podman_with_kubernetes.html working We are running without a root user or privileged escalation on the host. Our gitlab runner runs with the following security context:
Any ideas? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Issue Description
When running
docker run -it --rm --name podman-rootless "quay.io/podman/stable:latest"
thensu podman
thenpodman info --log-level debug
Returns:
However when running with
--privileged
or--
For example
docker run --security-opt seccomp=unconfined -it --rm --name podman-rootless "quay.io/podman/stable:latest"
thensu podman
thenpodman info --log-level debug
Returns:
Is it possible to run rootless podman without
--priviliged
or--security-opt seccomp=unconfined
Steps to reproduce the issue
Steps to reproduce the issue
docker run -it --rm --name podman-rootless "quay.io/podman/stable:latest"
su podman
podman info --log-level debug
--log-level debug
is optionalDescribe the results you received
Describe the results you expected
podman info output
Podman in a container
Yes
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional environment details
podman version
Returns:
podman --version
Returns:
Additional information
The ultimate aim is to get this image to work within a GitLab Runner (Kubernetes Executor) which has non-root access. Like https://docs.gitlab.com/runner/executors/kubernetes/use_podman_with_kubernetes.html
Beta Was this translation helpful? Give feedback.
All reactions