Questions tagged [podman]

Podman (the POD MANager) is a tool for managing containers and images, volumes mounted into those containers, and pods made from groups of containers. Podman runs containers on Linux, but can also be used on Mac and Windows systems using a Podman-managed virtual machine. Podman is based on libpod, a library for container lifecycle management. The libpod library provides APIs for managing containers, pods, container images, and volumes.

The high level scope of Podman and libpod:

  • Support for multiple container image formats, including OCI and Docker images.
  • Full management of those images, including pulling from various sources (including trust and verification), creating (built via Containerfile or Dockerfile or committed from a container), and pushing to registries and other storage backends.
  • Full management of container lifecycle, including creation (both from an image and from an exploded root filesystem), running, checkpointing and restoring (via CRIU), and removal.
  • Full management of container networking, using Netavark.
  • Support for pods, groups of containers that share resources and are managed together.
  • Support for running containers and pods without root or other elevated privileges (rootless).
  • Resource isolation of containers and pods.
  • Support for a Docker-compatible CLI interface, which can both run containers locally and on remote systems.
  • No manager daemon, for improved security and lower resource utilization at idle.
  • Support for a REST API providing both a Docker-compatible interface and an improved interface exposing advanced Podman functionality.
  • Support for running on Windows and Mac via virtual machines run by podman machine.

PodMan at GitHub PodMan Roadmap at GitHub

96 questions
6
votes
2 answers

How to configure a podman container to let it communicate with the host as well?

Is it possible to... run a container with podman which has an IP on the same subnet that the host is on is accessible from every other host on the subnet including the host itself? I had partial success using both a macvlan and ipvlan drivers - I…
chutz
  • 8,300
6
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
  • 175
6
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
  • 191
5
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
  • 977
  • 6
  • 27
  • 47
5
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
  • 977
  • 6
  • 27
  • 47
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…
5
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
  • 51
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…
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
  • 15
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…
3
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…
3
votes
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…
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.…
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
  • 977
  • 6
  • 27
  • 47
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
  • 163
1
2 3 4 5 6 7