Skip to main content

Questions tagged [podman]

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.

Filter by
Sorted by
Tagged with
1 vote
0 answers
16 views

Mysql container image behaving diferently between docker and podman in github actions

I have a github workflow that spins up a MySQL container. I'm using podman right now, because that matches our development workflow, but I'm seeing some weird differences in behavior between "...
larsks's user avatar
  • 36k
0 votes
0 answers
18 views

Podman container to run on boot (Microsoft Log Collector)

I have a container for the Microsoft log collector Podman container. In the documentation for the setup it requires the use of this command that I got sucessfully running by itself: (echo <key>) ...
dgibbs's user avatar
  • 305
0 votes
2 answers
31 views

Prevent podman containers from using AAAA results when there are no ipv6 routes

I am having a problem in which applications running in podman containers are attempting to use ipv6 addresses, despite the container having no ipv6 routes (other than the expected link-local addresses)...
larsks's user avatar
  • 36k
0 votes
0 answers
11 views

TCP RST doesn't reach process running inside Podman container

I'm debugging an issue I'm seeing where connections between a podman container and the host aren't being closed inside the container. I've written very simple test programmes: server and client. ...
jezza's user avatar
  • 138
-1 votes
1 answer
19 views

podman container that cannot be removed

Is there a way to create a podman running container that cannot be deleted. On purpose, such that if it is stopped and a command runs prune it will not be removed.
maxfridbe's user avatar
0 votes
0 answers
25 views

Podman Desktop registries error "Wrong Username or Password." during login

I am trying Podman Desktop 1.10.3 app for the first time. I assume that in order to locate pre-made images such as for Postgres or MySQL database servers, I must first provide username & password ...
Basil Bourque's user avatar
0 votes
0 answers
62 views

How do I run pi-hole using Podman?

I am building a home server just for fun and for the learning experience. This is my first time, so I am relatively new to all of this. The plan is to run things like pi-hole and Nextcloud and a few ...
ppflaum's user avatar
0 votes
1 answer
181 views

How to logrotate official nginx docker image running by podman

I started official nginx image in podman under root with command: sudo podman run --name nginx \ ... \ -v /var/log/nginx:/var/log/nginx \ docker.io/library/nginx:latest Logging working ok, but ...
Almaz's user avatar
  • 153
0 votes
0 answers
104 views

Podman unable to advertise port 53 even when the container has his own IP address

I am getting an error: Error: cannot listen on the TCP port: listen tcp4 :53: bind: address already in use When creating a container that gets his own IP address, this means that regardless of if ...
Delfin's user avatar
  • 150
0 votes
0 answers
134 views

Permission denied when mounting volume with podman in fedora

I use a docker-compose.yml file to boot my containers. My container mount to a external volume which targets a directory inside my user profile (postgres database files). However, after switching from ...
mesx's user avatar
  • 101
0 votes
0 answers
122 views

The RequiresMountsFor parameter is ineffective in user-level systemd unit files

I have a podman rootless container called qbittorrent. I used the podman generate systemd command to generate the unit file. I added the mount point I depended on after the RequiresMountsFor parameter ...
FrostSigh's user avatar
0 votes
0 answers
18 views

Mixed Loopback/Interface UDP request

I'm not sure if this is the most correct spot for this question, if not please let me know and I'll move it. This is my set up: pihole running in a rootless podman container using slirp4netns. The ...
John's user avatar
  • 1
0 votes
0 answers
51 views

Running a Java Abstract Window Toolkit application within a Docker container under Wayland

In the last years I ran a Java Swing application within a Docker container by running: docker run -u 1000:1000 --rm --name etax_zug --hostname etax-zug \ -e DISPLAY=unix:0 \ -e XAUTHORITY=/tmp/...
alexanderadam's user avatar
0 votes
1 answer
316 views

podman machine init debian

Following up on How to install docker-engine in macOS without docker desktop?, which mentioned that podman machine init set a machine with Fedora CoreOS by default. Yet I want to prepare a Debian ...
xpt's user avatar
  • 1,644
0 votes
0 answers
33 views

Can I use systemd resource management to deny port only outside containers

On an up-to-date fedora 39, I have set up podman for rootless containers and I limit the ports a user may bind to by creating /etc/systemd/system/user-1000.slice.d/user-resources.conf with [Slice] ...
Gamification's user avatar
0 votes
0 answers
83 views

Where are files that are created with rootles systemd/quadlet stored?

I was playing around and following this guide to see if I could spin up a container at startup. I am now done with it and have removed the systemd service from $HOME/.config/containers/systemd/ but I'...
telometto's user avatar
  • 2,055
0 votes
0 answers
22 views

Sign-in options problem in chromium with podman on wsl

I have some usage on aws-cli command on wsl debian/ubuntu no matter what distro, in which before some transition to other account everything worked fine with AWS SAML endpoint. Authentication did not ...
Marko Jovanovic's user avatar
0 votes
0 answers
41 views

How does --network=host generate different HTTP requests then rootless networking?

I have two commands, one of them with # RESOLVES TO IPV6 podman run --network=host ... And one of them, # RESOLVES TO IPV4 podman run --network=slirp4netns ... Is there anyway to ensure both of ...
Evan Carroll's user avatar
  • 31.8k
1 vote
0 answers
628 views

NetBSD: podman mount volume: Error: statfs : no such file or directory

I'm experimenting with podman under NetBSD and want to mount a host directory into the container. According to this answer I did: podman machine init -v ~/podman/volumes/:/mnt/podman tpvm podman ...
Thomas P's user avatar
1 vote
0 answers
146 views

Cant Get Container To Mount Volume With Standard User

I can't seem to get containers (running podman) to be able to write to directories when running a standard user. This solution also did not work. To be clear I can read files from these directories, I ...
The Floating Brain's user avatar
0 votes
0 answers
415 views

Why podman stats and systemd status show different memory usage?

Initially, I tried to avoid memory leaks of lxml with spawning multiprocesses and terminate it but I failed. So before I try a new idea, I set OOMPolicy=stop, MemoryMax=2G in the service file. My ...
Constantin Hong's user avatar
0 votes
1 answer
88 views

podman: chialab/php-dev:8.2-fpm found/not-found on different machines

I have two VMs running different host Linux OSs and identical podman-compose.yml files on the two. The podman-compose.yml file has the snippet: fpm: image: chialab/php-dev:8.2-fpm [...] ...
Michael NGV's user avatar
0 votes
0 answers
117 views

Podman Integration

As I am trying to integrate podman in yocto build system as already done in docker. For docker i haven't faced any issues just followed these steps: https://elinux.org/images/b/b4/03_integrating-...
Deepika's user avatar
0 votes
0 answers
56 views

Container cycles between healthy and died

I have added a container to my AlmaLinux 8 host and it starts fine (started as a service). But I notice strange output in the log below. Systemctl reports my service is running fine. Is the below ...
TSG's user avatar
  • 1,768
0 votes
0 answers
91 views

Established but hidden TCP connection

On computer 10.196.111.161, I can see the following established tcp connection: [10.196.111.161]# netstat -natp | grep 7000 Proto Recv-Q Send-Q Local Address Foreign Address State ...
meolic's user avatar
  • 101
0 votes
2 answers
618 views

podman fails with 'Error relocating' / 'RELRO protection failed'; ~/.local/share/containers a link to a different location

Trying to run any pods on Podman fails, after an SELinux relabeling $ podman run -ti alpine Error relocating /lib/ld-musl-x86_64.so.1: RELRO protection failed: No error information Error relocating /...
caxcaxcoatl's user avatar
0 votes
0 answers
649 views

Why can't I enable systemd services created with podman generate?

Given this setup: --- version "3" services: wireguard: image: "lscr.io/linuxserver/wireguard" container_name: "wireguard" cap_add: - "NET_ADMIN&...
telometto's user avatar
  • 2,055
0 votes
1 answer
3k views

podman - containers stuck in stopping state after reboot

I have now bumped into this problem several times - some podman containers get stuck in the stopping state, but I'm not sure how to tackle the problem. [grant@patches patches]$ podman ps -a CONTAINER ...
Grant Curell's user avatar
0 votes
1 answer
3k views

podman1: port 1(veth0) entered disabled blocking state / podman does not gracefully shutdown

I have podman setup as I described in this answer on Unix&Linux Stack Exchange. I am running this on Rocky Linux 9. I have further set up my user session to linger with loginctl enable-linger $(...
Grant Curell's user avatar
2 votes
0 answers
1k views

Podman: automatic network rules and iptables

When I run podman container and share port 4444 as following example: podman run -dit --name test -p 4444:4444 alpine It creates following iptable Chain INPUT (policy ACCEPT) target prot opt ...
Rafal Niznik's user avatar
0 votes
0 answers
958 views

How can I run a local instance of AdGuard Home on Ubuntu Server?

I want to run AdGuard Home on my Ubuntu Server (23.04) and point the router to the server in order to block ads etc. on my network. However, I'm running into all sorts of issues in regards to ports. ...
telometto's user avatar
  • 2,055
2 votes
1 answer
1k views

How can I configure a podman container to use my wireguard interface only?

Using wg-quick with the Table=off setting, I managed to set up a non-default interface wg1 on on linux bookworm machine that works as I expect it to: curl ifconfig.co return my real IP. curl --...
nicoco's user avatar
  • 419
0 votes
1 answer
456 views

Podman build fails with memory allocation error, and Docker cleanup failure

The podman build is failing with a Docker cleanup operation and memory allocation errors. My simplified Containerfile is: FROM docker.io/php:8.1-apache RUN apt-get update CMD ["...
Jim Leask's user avatar
  • 121
1 vote
1 answer
280 views

podman running as user dies after hard reboot - Method gave invalid 400 URI Failure message: Failed to setgroups - setgroups (22: Invalid argument)

I'm struggling to determine what is going on here. Podman running in user space was running fine, but the server took a hard reboot and now it is... for lack of a more accurate technical assessment, ...
Grant Curell's user avatar
1 vote
1 answer
6k views

Where did podman put my container?

I just installed AlmaLinux 9 (a Red Hat 9 clone), and setup containers with podman which is the new standard for RH9. Following some instructions online, I succesfully downloaded and ran a container ...
TSG's user avatar
  • 1,768
1 vote
1 answer
656 views

nginx container networking DNS resolves to incorrect IP address

The patches-nginx container is incorrectly resolving the IP address of patches-backend within the nginx process but not when I check it manually from the nginx command line. I have nginx running as a ...
Grant Curell's user avatar
0 votes
1 answer
701 views

Attaching Custom Networks with Podman Containers

I am working with Podman and I want to run a simple Nginx container. I want to run the container in an isolated custom network similar to Docker. The command is as follows: docker run -it -p 8080:80 --...
mhassaankhokhar's user avatar
0 votes
1 answer
692 views

custom routing for podman rootless containers

I want to route all traffic coming from a Podman container to a specified gateway. I can easily achieve this with a tap device. However, when running Podman in rootless mode, I can see the tap device ...
a.ilchinger's user avatar
0 votes
1 answer
332 views

Can't start nginx podman container with user service file

I have an nginx container that runs as part of a service. This is the function code used to start all the containers including nginx: if [[ ! -s ${SCRIPT_DIR}/.container-info-patches.txt ]]; then ...
Grant Curell's user avatar
2 votes
0 answers
277 views

Do I need to stop or pause a container before I export a volume?

To avoid an inconsistent volume backup, I pause (or outright stop) a container before I copy the contents of the volume. Is this still necessary when backing up containers via podman volume export, or ...
Tenders McChiken's user avatar
0 votes
2 answers
374 views

podman Error: wrong number of file descriptors for socket activation protocol (2 != 1)

I'm encountering what seems like a bug with the socket activation mechanism for podman, though I'm not sure if the issue is podman or systemd. I created an alternative managed socket unit for the ...
Charles Langlois's user avatar
0 votes
0 answers
266 views

Cannot snap install podman on Ubuntu 20.04

The commands say it all: ~> sudo snap refresh All snaps up to date. ~> sudo snap install podman error: snap "podman" is not available on stable but is available to install on the ...
Zorglub29's user avatar
  • 101
0 votes
1 answer
710 views

How can I supply a heredoc to podman run?

When I run buildah, I typically use a heredoc, ctr=$(buildah from alpine:3); buildah run $ctr sh -- <<EOF apk update; apk add git; EOF buildah commit $ctr heredoc_demo; However, when I ...
Evan Carroll's user avatar
  • 31.8k
4 votes
1 answer
1k views

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 ...
user21113865's user avatar
0 votes
2 answers
3k views

podman error: ERRO[0013] failed to move the rootless netns slirp4netns process to the systemd user.slice: Process org.freedesktop.systemd1 exited

After su to a regular user, when I run podman run --network=podman" -it ubi8 I get the error ERRO[0013] failed to move the rootless netns slirp4netns process to the systemd user.slice: Process ...
Cavalcade's user avatar
0 votes
1 answer
563 views

Why won't my MySQL Podman container run?

I have installed "Development Tools" and run the following commands: podman pull mysql:latest # this is pulled from docker.io podman images # lists ...
telometto's user avatar
  • 2,055
3 votes
2 answers
8k views

Podman w/Docker Compose - run as user?

I'm trying out docker-compose with Podman which according to this is now supported. I run the instructions and can indeed hit the socket when running as root but when I try as user I get: permission ...
Grant Curell's user avatar
0 votes
1 answer
77 views

Errors appending text with `sed`

I have a podman-compose file: version: "3.8" services: kiwix-serve: image: docker.io/kiwix/kiwix-serve:3.3.0-1 volumes: - kiwix_data:/data - /home/meijin3/zim/...
meijin3's user avatar
  • 139
1 vote
1 answer
2k views

Host-wide consequences of setting SELinux z/Z option on container bind mounts

When running podman containers with volume mounts, it is often necessary to add the :z (or :Z) parameter to the mount path. It is due to SELinux and its type enforcement. What the parameter does is it ...
mnj's user avatar
  • 291
0 votes
0 answers
2k views

ls: can't open '.': Permission denied in podman container

I have the following directory (on my host): drwxr-xr-x@ - mnj mnj 15 Dec 21:02 -- mocks/ It's owned by me (mnj) and everyone should have at least READ access to it. I'm running a podman ...
mnj's user avatar
  • 291