Podman is a daemonless container engine for developing, managing, and running OCI Containers on your Linux System. Containers can either be run as root or in rootless mode.
Questions tagged [podman]
110 questions
19
votes
1 answer
podman no longer searches dockerhub: Error: short-name ... did not resolve to an alias and no unqualified-search registries are defined
Not sure what I did, but now I'm getting
Error: short-name "postgres:14" did not resolve to an alias and no unqualified-search registries are defined in "/etc/containers/registries.conf"
When I try to run podman pull postgres:14. I can verify…
Evan Carroll
- 28,578
- 45
- 164
- 290
16
votes
2 answers
Podman volume mounts: When to use the :z or :Z suffix?
The Podman man pages explains for volume mounts/binds:
Labeling systems like SELinux require that proper labels are placed on volume
content mounted into a container. Without a label, the security system might
prevent the processes running inside…
rugk
- 2,806
- 6
- 28
- 58
6
votes
1 answer
cgroups v2: cgroup controllers not delegated to non-privileged users on CentOS Stream (8)
I am currently trying to configure my more or less fresh installation of CentOS Stream (8) to delegate cgroup controllers to non-privileged users. However, I fail at this and I've searched the web for two days now but I can't find someone with the…
snake
- 91
- 1
- 7
5
votes
2 answers
Podman errors on tar with potentially insufficient UIDs or GIDs available in user namespace
When I run podman run I'm getting a particularly weird error,
❯ podman run -ti --restart=unless-stopped -p 80:80 -p 443:443 rancher/rancher:latest
✔ docker.io/rancher/rancher:latest
Trying to pull docker.io/rancher/rancher:latest...
Getting image…
Evan Carroll
- 28,578
- 45
- 164
- 290
4
votes
1 answer
How can I preserve the logs a docker/podman container even after the container dies?
I have pods running in OpenShift that I would like to view the logs for. In particular, I want to see the logs when the pod is terminated.
However, when the pod is terminated the logs are deleted as far as I can tell. I've tried tailing 'oc logs '…
user21113865
- 43
- 2
4
votes
0 answers
Rootless podman container with privileged port mapping
Is there a way to start a rootless podman container with mapped privileged port (container service is exposed through host's port 1023 or lower)?
Running
$ podman run --rm -it -p 80:80 nginx:stable-alpine
Error: rootlessport cannot expose…
czerny
- 1,577
- 3
- 15
- 20
4
votes
1 answer
When a systemd service starts a rootless `podman run` process, why is its output not associated with the service in the journal?
I have a simple systemd service in /etc/systemd/system/logtest.service, which creates a Podman container that outputs some text:
[Unit]
Description=Systemd log test
[Service]
Type=oneshot
ExecStart=podman run --rm busybox echo This should get…
Karel Vlk
- 340
- 1
- 8
4
votes
1 answer
Why does podman stop the container why I try to attach to it?
Just starting to learn containers so I probably have missed something / not read enough yet, but I have run into a strange behavior and am trying to understand what is happening. I tried googling but haven't been able to find an explanation so I…
zpangwin
- 591
- 1
- 4
- 20
4
votes
1 answer
How to switch systemd user/shell on remote server without logging in again via ssh?
This is a remote machine with SSH access and systemd.
I basically have this error when I try to run systemd user commands:
$ systemctl --user status
Failed to connect to bus: $DBUS_SESSION_BUS_ADDRESS and $XDG_RUNTIME_DIR not defined (consider using…
rugk
- 2,806
- 6
- 28
- 58
4
votes
1 answer
Why systemd-nspawn is slower than docker,podman and qemu?! how to Improve nspawn performance?
Why nspawn is slow compared to docker podman and even qemu?!
CPU tasks take twice of the time it takes in docker, podman or qemu
Here is a benchmark test I did:
First I disabled all the spectre/meltdown mitigations in the host kernel (and the qemu…
Badr Elmers
- 432
- 6
- 13
3
votes
3 answers
Best practices for running a rootless container as a systemd service with User= or --user?
I'm experimenting with running rootless containers with Podman as systemd services. I'd also like to run the services themselves with non-root privileges, either:
a) as a system service, but with User= set to a service user, or
b) as a user service…
JK Laiho
- 141
- 4
3
votes
1 answer
Error: kernel does not support overlay fs: 'overlay' is not supported over extfs
When I run podman with --storage-opt ignore_chown_errors=true I am getting
Error: kernel does not support overlay fs: 'overlay' is not supported over extfs at /home/user/.local/share/containers/storage/overlay: backing file system is unsupported…
Evan Carroll
- 28,578
- 45
- 164
- 290
3
votes
1 answer
How can I inspect the amount of layers in my image?
Let's say I want to inspect the amount of layers in my image, how many times the image has been modified before it came to its final form, how can I do this?
Evan Carroll
- 28,578
- 45
- 164
- 290
3
votes
1 answer
Can't run fuse inside podman: fusermount: mount failed: Operation not permitted
I'm trying to design a podmod container that can run fuse inside, for example to use sshfs or run some appimages.
However I get errors:
fusermount: mount failed: Operation not permitted
Any idea what's wrong? I tried to use --device fuse and the…
tobiasBora
- 3,376
- 2
- 23
- 34
3
votes
2 answers
How do you prune with buildah?
When I run buildah containers, I see this
CONTAINER ID BUILDER IMAGE ID IMAGE NAME CONTAINER NAME
f5a361407499 * a24bb4013296 docker.io/library/alpine:latest alpine-working-container
eb03f2eb1fb6 * …
Evan Carroll
- 28,578
- 45
- 164
- 290