Questions tagged [podman]
Podman is a daemon-less container engine for developing, managing, and running OCI Containers on your Linux System. Containers can either be run as root or in rootless mode.
548
questions
27
votes
3
answers
21k
views
How to run podman from inside a container?
I want to run podman as a container to run CI/CD pipelines. However, I keep getting this error from the podman container:
$ podman info
ERRO[0000] 'overlay' is not supported over overlayfs
Error: ...
24
votes
3
answers
20k
views
There is any "Podman Compose"?
I recently found out about Podman (https://podman.io). Having a way to use Linux fork processes instead of a Daemon and not having to run using root just got my attention.
But I'm very used to ...
15
votes
6
answers
11k
views
How to mount a volume from a local machine on Podman
I'm trying to use Podman for local development. My idea is to use a local folder and sync it with the container where I'll be running my application.
I found that the -v option that I would use if I ...
13
votes
2
answers
8k
views
podman machine - Cannot connect to Podman on MacOS
Update: This is solved, please see the answer.
I am using podman on MacOS with podman machine and now podman is unable to connect to the podman machine.
(It worked earlier but not sure the new macOS ...
13
votes
1
answer
8k
views
Podman in Podman, similar to Docker in Docker?
Is there a way to run Podman inside Podman, similar to the way you can run Docker inside Docker?
Here is a snippet of my Dockerfile which is strongly based on another question:
FROM debian:10.6
RUN ...
13
votes
1
answer
6k
views
Podman mount host volume return 'Error: statfs: no such file or directory' in Mac OS
Recently switched from Docker Desktop to Podman, everything work smoothly except when I want to mount host volume into container. e.g.
➜ ~ podman run --name nginx -v ~/bin/nginx/nginx.conf:/etc/nginx/...
12
votes
5
answers
6k
views
Testcontainers with Podman in Java tests
Is it possible to use Testcontainers with Podman in Java tests?
As of March 2022 Testcontainers library doesn't detect an installed Podman as a valid Docker environment.
Can Podman be a Docker ...
12
votes
3
answers
14k
views
Why Does Podman Report "Not enough IDs available in namespace" with different UIDs?
Facts:
Rootless podman works perfectly for uid 1480
Rootless podman fails for uid 2088
CentOS 7
Kernel 3.10.0-1062.1.2.el7.x86_64
podman version 1.4.4
Almost the entire environment has been removed ...
11
votes
2
answers
30k
views
How to force delete all podman images and children
When I do something like podman rmi d61259d8f7a7 -f it fails with a message: Error: unable to delete "vvvvvvvvvvvv" (cannot be forced) - image has dependent child images.
I already tried the ...
10
votes
1
answer
9k
views
Accessing host from inside container
What I am trying to accomplish is to connect to a database installed on the host system. Now there is a similar question already for docker, but I could not get that to work with Podman, I imagine ...
9
votes
2
answers
15k
views
Podman pull 'official' images from docker hub?
No matter what I do, I only ever get a 404 or Error: invalid reference format
I think it should be podman pull hub.docker.com/_/postgres
but this doesn't work. I've also tried
podman pull hub.docker....
9
votes
1
answer
3k
views
Authenticate to Google Container Registry with Podman
The Google Container Registry documentation provides very good help on authenticating to it with Docker. Is there a way to do the same with Podman? The Google doc mentions Access Token as a method. ...
9
votes
1
answer
2k
views
Podman: ERRO[0000] The storage 'driver' option must be set in /etc/containers/storage.conf
I'm on Manjaro, trying Podman and getting this error when I use any podman command:
ERRO[0000] The storage 'driver' option must be set in /etc/containers/storage.conf, guarantee proper operation.
How ...
7
votes
4
answers
18k
views
mount directory to container won't work with podman
As I have fedora I tried to run the nginx example from their tutorial, i don't get nginx to show any content.
When i run the this container:
podman run --name mynginx1 -p 8080:80 -d nginx
I get ...
7
votes
2
answers
4k
views
Podman how remove all exited containers if there are many
On a server running containers with Podman I just realised, there are many containers with "Exited" status and wanted to remove all of them in one go.
How can I do it with Podman?
7
votes
1
answer
6k
views
Podman unable to mount local file into container
I'm planning to move away from Docker to Podman.
I use docker-compose a lot so am planning to switch to podman-compose as well.
However I'm stuck at the simplest of podman examples, I can't seem to ...
6
votes
2
answers
1k
views
podman: Error: failed to parse "X-Registry-Auth" header
I'm trying to use podman for the first time (under Mac OS with podman machine, but this is probably irrelevant). When I try to start busybox image as a test, like described in Introduction:
podman run ...
6
votes
2
answers
6k
views
Kubelet - failed to "CreatePodSandbox" for coredns; failed to set bridge addr: could not add ip addr to "cni0": permission denied
EDIT 1
In response to the comments I have included additional information.
$ kubectl get pods --namespace kube-system
NAME READY STATUS ...
6
votes
2
answers
5k
views
Increase Podman memory limit
I am trying to build a large image with Podman. The build fails with
Reached heap limit Allocation failed
error.
In docker I can avoid this by allocating more memory for docker engine in docker ...
6
votes
3
answers
11k
views
In a ROOTLESS podman setup, how to communicate between containers in different pods
I read all I could find, but documentation on this scenario is scant or unclear for podman. I have the following (contrived) ROOTLESS podman setup:
pod-1 name: pod1
Container names in pod1:
p1c1 -- ...
6
votes
1
answer
4k
views
Connect to VPN with Podman
Having this Dockerfile:
FROM fedora:30
ENV LANG C.UTF-8
RUN dnf upgrade -y \
&& dnf install -y \
openssh-clients \
openvpn \
slirp4netns \
&& dnf ...
6
votes
2
answers
3k
views
Podman initialize (init) not working on Windows 10
UPDATE:
I managed to fix this by enabling wsl2 with this command
wsl --set-default-version 2
After running podman-v4.1.0.msi and running the podman machine init command in power shell i get this:
...
6
votes
1
answer
737
views
What are good workflows for deploying podman/buildah created container images to minikube?
I am exploring and learning about containers and kubernetes using podman and minikube on a linux workstation. I use podman to build images on the workstation and would like to deploy these images in ...
6
votes
2
answers
4k
views
Can't get Podman to run on an Mac M1 Monterey
I have done the following so far:
brew install qemu (apparently needed for podman, but want to use it for VMs anyway)
brew install podman
modify ~/.config/containers/containers.conf and add following ...
6
votes
1
answer
2k
views
Running Podman in docker container without privileged
I would like to know how can i run Podman inside a docker container without using --privileged parameter ? I am not using rootless, meaning i'm running with root user for now.
Works with privileged
...
6
votes
0
answers
693
views
Building / Installing podman as non-root
From what I've read it seems to be the answer to everything that ails docker. Images in user directory, containers with only user permissions, no daemon, etc. Yet every guide to installing seems to ...
5
votes
1
answer
11k
views
Run privileged podman without sudo (and without usernamespace)
I installed podman on RHEL 7.6 and can run normal docker command with sudo
sudo podman run hello-world
Is there a way to run it without sudo, without using usernamespace (similar to adding your user ...
5
votes
2
answers
6k
views
Mapping of user Id's
I'm evaluating podman in rootless mode and faceing an issue with the User ID Mapping.
I run podman with "myuser" who has the ID 1000.
cat /etc/subuid
myuser:100000:65536
When running a pod, ...
5
votes
2
answers
1k
views
Can podman connect to a remote docker host by setting $DOCKER_HOST?
I know that podman is a daemonless container engine, which is a plus.
But if I need to start a container on a remote host running docker server, is this possible through podman?
e.g. Having placed ...
5
votes
2
answers
3k
views
Podman on Mac throws error when running podman machine init
Installed podman using brew (brew install podman)
Trying to start the VM using podman machine init but receiving the following error:
Extracting compressed file
Error: cannot overwrite connection
...
5
votes
2
answers
4k
views
Expose ports with rootless podman
I am trying to expose port 8080 using rootless podman on RHEL 8.3.
The podman version I am using is:
$ podman --version
podman version 2.2.1
I am using a simple Flask API to test it:
from flask ...
5
votes
1
answer
4k
views
Podman Play does not pull localhost image: Get "https://localhost/v2/": dial tcp [::1]:443: connect: connection refused
I generated a YAML definition for my pod running three containers (infra, mariadb and a local container image):
podman generate kube > my-pod.yaml
Then I want to deploy using the definition:
...
5
votes
1
answer
5k
views
Does Podman support private registry
My understanding is that when Podman pulls an image, it caches it to a users home directory - eg) ~/.local/share/containers. Docker provides a mechanism for a private image registry that enables ...
5
votes
1
answer
3k
views
How do I change the cgroup version for podman
I am trying to run podman with cgroups v2 enabled. I found a couple of blogposts explaining how to change the runtime to crun and the cgroup_manager to cgroupfs. But I don't know how to actually set ...
5
votes
1
answer
4k
views
Is there a possibility to change restart policy of podman container?
Is there a possibility to change container restart policy using podman? We can set policy during creating container podman run --restart always, but how to change it when the container is created?
...
5
votes
3
answers
4k
views
How to push an image to the Docker registry using podman
Is it possible to push images to the Docker registry using podman?
I am running podman with the podman-docker (that claims to emulate the Docker CLI) package on fedora and I managed to successfully ...
5
votes
2
answers
1k
views
How to run podman and buildah without writing to home directory?
There is almost no disk space left in my home directory but
I have a lot of disk space in the directory /scratch/tmpexperiment. That directory is now empty.
I would like to try out the commands ...
5
votes
1
answer
989
views
How to use podman's ssh build flag?
I have been using the docker build --ssh flag to give builds access to my keys from ssh-agent.
When I try the same thing with podman it does not work. I am working on macOS Monterey 12.0.1. Intel chip....
4
votes
2
answers
11k
views
Podman: add ports to expose to running pod
Is it possible to expose additionally ports for a pod that is already running?
If I create a new pod I would supply them with podman pod create ... -p 8080:80.
However, I don‘t want to throw my pod ...
4
votes
2
answers
1k
views
How is Podman different from Docker?
I know that Docker and Kubernetes solve the same problem. Most users can simply alias Docker to Podman (alias docker=podman) without any problems.
So what is the difference between them?
4
votes
2
answers
2k
views
Using podman instead of docker for the Docker@2 task in Azure DevOps
Our build agent is running Podman 3.4.2 and there is a global alias in place for each terminal session that simply replaces docker with podman, so the command docker --version yields podman version 3....
4
votes
2
answers
3k
views
Podman on mac error : connect: no such file or directory
Installed Podman for mac with brew
brew install podman
It's installed successfully, but then if you try to use it with something like
podman images
I get the following error
Error: Get "http://...
4
votes
2
answers
5k
views
How do I get a podman/buildah container to run under CentOS on GCE?
1. Summarize the problem
I am following this simple tutorial from Developers RedHat to get a simple node/express container working.
I cannot get a container to run under a CentOS 7 VM on GCE.
I ...
4
votes
1
answer
2k
views
Podman pod disappears after a few days, but process is still running and listening on a given port
I am running an Elasticsearch container as Podman pod using podman play kube and a yaml definition of a pod. Pod is created, cluster of three nodes is created and everything works as expected. But: ...
4
votes
1
answer
7k
views
podman.sock: connect: no such file or directory when using podman pull image
I am install podman in MacOS Catalina 10.15.7:
~/source/dabai/microservice/soa-illidan-hub on feature/cardrobot ⌚ 13:01:36
$ brew install podman
==> Downloading https://mirrors.aliyun.com/...
4
votes
2
answers
6k
views
How do I replicate a docker macvlan network with podman?
I have a working docker implementation on a fedora workstation that I use to host a Unifi Network Controller application. I use a macvlan to assign a static IP to the controller. The docker network ...
4
votes
1
answer
4k
views
Run buildah within gitlab-ci
I want to use buildah from gitlab-ci, in order to build an image, run a container from it and do some tests against it.
My current gitlab-ci is:
tests:
tags:
- docker
image: quay.io/buildah/...
4
votes
1
answer
1k
views
Access Podman REST API from TestContainer
I develop a Java application using Maven 3 and Podman 1.8.0. I understand that Podman provide a Docker compatible REST API.
Java integration test use TestContainer framework. TestContainer is not ...
4
votes
1
answer
2k
views
podman returns "Error processing tar file(exit status 1): operation not supported" (rootless)
When starting the images alpine and ubuntu, podman works (RHEL 8). If starting the images ubi8 and grafana/grafana-oss, it fails with
Error: writing blob: adding layer with blob "sha256:...
4
votes
2
answers
3k
views
How to save the keycloak data when running inside docker container?
I run keycloak standalone using a command for docker docker run -p 8080:8080 -e KEYCLOAK_USER=admin -e KEYCLOAK_PASSWORD=admin quay.io/keycloak/keycloak:15.0.2
How to mount a volume to save the data, ...