Questions tagged [podman]

Podman is a daemonless container engine with a docker-compatible command line

66 questions
5
votes
1 answer

Podman: Method to convert docker-compose files to systemd unit files

I'm migrating away from docker towards podman (not going straight for kubernetes, as that would definitely be overkill at this point). Now, many an elegant configuration can be had as docker-compose setup – but docker-compose relies on the docker…
Marcus Müller
  • 500
  • 4
  • 13
5
votes
0 answers

How to bind a podman container to specific host IP

I need to setup a ssh server (actually a git repo) inside a podman container. The host system has sshd already running on port 22. I am creating a pod with following command: # podman pod create --name=gitlab --share net -p 22:22 -p 443:443 -p…
SWilk
  • 181
  • 2
  • 7
4
votes
2 answers

How can I access the network of a container?

I am sure this was asked a million times but I just cannot find anything online for some reason. I have two network I created with Podman (similar to Docker). When I do localhost:9998 it just times out. So it just can't connect. Is there a way to…
jnbdz
  • 927
  • 5
  • 24
  • 46
4
votes
3 answers

How can I change the OCI Runtime in Podman

I know that in Docker if you want to change the runtime you go to: /etc/docker/daemon.json And modify: { "runtimes": { "runnc": { "path": "/usr/sbin/runnc" } } } But how do I do this with Podman (or just add…
jnbdz
  • 927
  • 5
  • 24
  • 46
4
votes
2 answers

podman: rootless container: permissions for container user

In nginx podman container nginx user is used to run nginx server. On the host machine ls -alh: drwxrwx--- 2 myuser myuser 4.0K Aug 10 22:23 . drwxrwx--- 3 myuser myuser 4.0K Aug 10 22:59 .. -rw-rw---- 1 myuser myuser 46 Aug 10 22:24 .htpasswd The…
dmnsta
  • 41
  • 1
  • 2
4
votes
0 answers

CentOS8: podman with enabled firewalld breaks DNS for container

I just have started using CentOS8 + podman in scope of migration from CentOS7 + docker. The issue is the following: When firewalld is stopped - DNS works fine inside container: [root@dev1 ~]# systemctl stop firewalld [root@dev1 ~]# podman run -it…
AndrewG10i
  • 151
  • 2
  • 7
3
votes
2 answers

How do I use podman to put an entire zookeeper ensemble in a pod?

For testing reasons, I would like, as an ordinary user, to create an entire zookeeper ensemble in a pod where all the individual zookeepers can talk to eachother. As far as I can tell, either all the containers in a pod share the same network…
Omnifarious
  • 400
  • 1
  • 3
  • 13
3
votes
1 answer

Why is systemd-oom the owner of my podman container volume?

I'm attemping to run Listmonk using the provided Docker method, but I'm encountering an issue related to systemd-oom that I am struggling to understand. I've mapped the /var/lib/postgresql/data volume in the db service to my local /srv/listmonk/data…
soulprovidr
  • 133
  • 4
3
votes
1 answer

What's the difference between rootless Docker, running a container as a non-root user, and Podman?

Recently I've been trying to run my Docker application as a non-root user. I've seen there are several options available to me: Install rootless Docker : apparently this is a "non-root" version of Docker that runs containers as users other than…
Klangen
  • 145
  • 1
  • 5
3
votes
1 answer

Environment variables propagation in podman

I'm running a simple Kubernetes deployment descriptor with podman play kube and some of my services need env vars to be set. In Docker Compose/Swarm I could just place the names of env-vars to the file and they would be picked up from a host OS.…
Dmytro Titov
  • 155
  • 5
3
votes
1 answer

Unable to get communication between two rootfull containers with podman

I have two nginx containers running. One is listening on port 80 the other 8080. Here is how I run them: sudo podman run --rm \ -t \ -p 8080:80 \ --publish-all \ --name nginx-two \ -v ./html2/:/usr/share/nginx/html \ -v…
jnbdz
  • 927
  • 5
  • 24
  • 46
2
votes
0 answers

Can't use docker/podman on fresh Centos8

I have a fresh CentOS 8 machine. Not knowing about "podman" I installed docker: yum install docker. This actually installs podman 1.0.5. I can't run any images: devrisenshine2 [wiretap_wrapper] % podman run -it --rm alpine sh error creating libpod…
GaryO
  • 153
  • 1
  • 7
2
votes
1 answer

podman: map container user to host user for shared volume permissions

I am trying to set up gitea using podman. I would like to have the data volume mapped to a host directory, because it allows me to easily inspect and backup the data the container process executed by a specific host user Podman is executed by the…
Robert Munteanu
  • 1,644
  • 5
  • 23
  • 41
2
votes
2 answers

Running amd64 UBI9 images with podman on Apple Silicon

I'm trying to run an amd64 UBI9 image on Apple silicon with Podman. Podman provides a Fedora CoreOS VM to run containers in. It allows for installing qemu binaries to run "foreign architecture" containers. Problem is, the architecture of the UBI9…
wzzrd
  • 10,409
  • 2
  • 35
  • 47
2
votes
0 answers

RHEL 8.2 podman rootless container network bottleneck at 20Mbits/s

When I run container by podman 1.6.4 on RHEL8.2 (fresh install) with rootless user. The maximum upload speed per container will be around 22Mbits/s (with 1Gbits/s network) After start a second process, total network usage will go up to ~45Mbits/s (~…
Pattapong J
  • 151
  • 6
1
2 3 4 5