Questions tagged [podman]

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

49 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
  • 378
  • 2
  • 11
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
  • 897
  • 5
  • 22
  • 43
4
votes
2 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
  • 897
  • 5
  • 22
  • 43
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
  • 388
  • 3
  • 13
3
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
  • 31
  • 2
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
  • 897
  • 5
  • 22
  • 43
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
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
2
votes
0 answers

Setting up Lavarel with Podman, but the php user can't write to my mounted directory

I've set up a laravel project on Fedora using Podman. For this I wrote a small script that attempts to replace the build process usually done by sail. #!/usr/bin/env bash if [ -f ./.env ]; then # Surce .env so Laravel's env variables are…
Buzu
  • 121
  • 2
2
votes
1 answer

Podman rootful containers not accessible by haproxy loadbalancer

I have created two networks in podman, "backend" and "frontend". NAME VERSION PLUGINS podman 0.4.0 bridge,portmap,firewall,tuning backend 0.4.0 bridge,portmap,firewall,dnsname frontend 0.4.0 bridge,portmap,firewall,dnsname I…
mdx0111
  • 23
  • 3
1
vote
0 answers

Linux NFS (v4) user namespace file permissions

I am trying to set up a rootless container setup using podman and am having a problem with file permissions on NFS (running NFSv4). Within the user namespace, I am able to create files as root on any filesystem, and to change ownership on any local…
Bruce
  • 11
  • 2
1
vote
1 answer

Podman (or docker) running a MySQL container and a shared data directory

I am running a Ubuntu 20.04.5 LTS virtual machine for my development environment. In the past I have run multiple VM's to host databases, web servers, etc, as I need them for projects. So in short, I am a container noob! What I am attempting to do…
UnKulMunki
  • 13
  • 5
1
vote
0 answers

Moving folders while building a podman container

I am creating a container for Podman that runs Samba Active Directory as a Primary Domain Controller and with Bind DNS backend. It is based of a previous container that I made which had volume mappings to both Samba and Bind and that I have gotten…
1
2 3 4