Questions tagged [podman]
36 questions
5
votes
1 answer
podman "The cgroupv2 manager is set to systemd but there is no systemd user session available" warning
Context
I am using a Raspberry Pi running on Raspbian. I connect remotely using ssh.
I want to use podman for building images and running containers, the exact same way I've done on my local machine.
The installation of podman has been done the…
GregoirePelegrin
- 151
5
votes
1 answer
ping does not work on a rootless Ubuntu podman container on Fedora
While running a rootless Ubuntu image with podman on a Fedora host, ping fails with an "Operation not permitted" error.
root@337e8ebdc287:/# ping google.com
bash: /usr/bin/ping: Operation not permitted
On alpine/fedora images, ping works
$ podman…
epokhe
- 151
4
votes
1 answer
Podman error "no space left on device" even though there is space and tmpdir is set
I have a 150GB /docker partition mounted on a RHEL 8 VM and I have ran this command as root and also with a local user that has sudo:
export TMPDIR=/docker
to make Podman change its default tmpdir. However, upon import of a 54GB .tar we run into…
808mrb
- 43
3
votes
1 answer
Podman rootless container can't access host's file that has group read permission
I'm trying to access a shared certificate key from a rootless Podman container that is running OpenLDAP service as a non-root user. The key has group read rights and the user that is running my container is a member of this group. I wouldn't want to…
Marko
- 49
3
votes
0 answers
What is the difference between flatpak and OCI container systems?
Doesn't Flatpak and and OCI container systems like Docker, Podman and similar systems
encapsulate and distribute programs and it's dependencies independent from a Linux systems package management and
run processes by reusing the OS's kernel (in…
user63835
- 374
- 1
- 4
- 13
2
votes
1 answer
How to use podman or docker with your current user's permissions to interact with volume?
I am trying to use podman to create a development container to compile a project (that requires a specific distro configuration).
Using docker, the files created on the mounted volume have root:root permissions which is annoying to work with.
I'd…
David Alsh
- 627
2
votes
0 answers
With Podman Desktop on Windows 10, I can't reach container from host when using host's domain name instead of localhost
I'm running Podman Desktop on Windows 10, and I have set up a container to run with port mapping 8080:80. The command I use to run the container is podman run --name test -dt -p 8080:80 docker.io/nginx.
When I try to get a response from the server…
2
votes
1 answer
Why does `sudo` fail in a simple container on Fedora 32?
I am scratching my head trying to figure this one out.
Under a freshly installed Fedora 32, the following minimal container does not execute properly:
FROM centos:7
RUN yum install -y sudo && yum clean all -y
RUN useradd -m test
RUN sudo -u test…
choeger
- 131
1
vote
1 answer
How to properly manage a compose file with systemd
I'm trying to properly manage a compose file with systemd. I'm using rootless podman.
What I want to achieve:
being able to restart a container if it fails
being able to restart the whole compose file if all fail
I can't quite figure out on how to…
divadpoc
- 121
1
vote
1 answer
Running X11 applications in podman containers on a Windows host
It is well known that you can run X11 applications in a docker container by passing /tmp/.X11-unix as a volume, setting DISPLAY appropriately, e.g. by forwarding it using -e DISPLAY=$DISPLAY and possibly also passing ~/.Xauthority as volume. This…
Michael Karcher
- 171
1
vote
1 answer
How to change `podman machine init --image` to Ubuntu or other distribution?
I have Windows 10 WSL2, I install podman.
After installing - podman machine init, Fedora is always installed as default OS in podman
Because, in my opinion, the most stable option for starting the Linux subsystem with podman-compose support - there…
gzhegow
- 11
1
vote
1 answer
Firewalld port redirect to rootless podman container
I'm having a podman container running rootless on port 8080 and 8443. But I want to have access to them on port 80 and 443.
This is working quite well with firewalld and this command:
firewall-cmd \
--add-rich-rule "rule family=ipv4 forward-port…
user496909
- 11
1
vote
1 answer
docker/podman issue when building in a golang:1.20 container
Anyone know why podman fails and docker works?
podman:
$ podman run --rm -v "$PWD":/usr/src/myapp -w /usr/src/myapp golang:1.20 go build -v
go: go.mod file not found in current directory or any parent directory; see 'go help modules'
docker:
$ sudo…
Nifle
- 34,998
1
vote
1 answer
Error: qemu exited unexpectedly with Could not open edk2-aarch64-code : No such file or directory
After brew upgrade podman machine no longer works.
podman machine start
Starting machine "podman-machine-default"
Waiting for VM ...
Error: qemu exited unexpectedly with exit code 1, stderr: qemu-system-aarch64: -drive…
nelaaro
- 14,139
- 30
- 88
- 115
1
vote
0 answers
Podman push to quay results in "Requesting bearer token: invalid status code from registry 400 (Bad Request)"
I'm on Linux (RHEL8) trying to use podman to push to an internal quay registry, but I get an error about the "bearer token" when I execute the podman push, as shown below:
podman login -u="quay_robot_username" -p="quay_robot_password"…
Dan
- 111