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
0 votes
1 answer
21 views

How do I get the cgroup path for a podman container?

Is there a way to get the cgroup root path(s) for a podman container? It seems podman inspect does not reveal anything about cgroups. One "hacky" way I've found is to do something like # Run ...
user avatar
  • 350
1 vote
0 answers
28 views

Change the default firewalld zone for podman networks

Whenever podman creates a new network (interface) - by default - it adds it to the trusted zone of firewalld as described here: Podman adds each container to firewalld's trusted zone. You can add ...
user avatar
0 votes
1 answer
45 views

podman play kube --network does not properly attach network

I'm using podman on RHEL8.6 to deploy a pod composed of two containers, zabbix-server and postgres-server. To deploy the containers, podman play kube is used on a .yaml file to import and run the pod ...
user avatar
  • 111
1 vote
1 answer
80 views

How to do offline-installation of multiple images via podman load/save

I am using an app depending on the image docker.io/library/mariadb:10.7. Images can be pulled, and saved in a tarball: podman pull \ docker.io/photoprism/photoprism:latest \ docker.io/library/...
user avatar
  • 11
0 votes
1 answer
30 views

Podman sharing one port with every contianer running in a pod?

On Kubernetes, a typical design paradigm is to share one container on every container running such that they call connect localhost with a given port. Then Kubernetes will route that traffic to the ...
user avatar
  • 22.9k
0 votes
0 answers
56 views

How do I remove that container from a pod?

Currently whenever I try to add a container to a pod, I get an error, Error: error creating container storage: the container name "database" is already in use by [SHA1]]. You have to remove ...
user avatar
  • 22.9k
3 votes
1 answer
423 views

podman no longer searches dockerhub: Error: short-name ... did not resolve to an alias and no unqualified-search registries are defined

Not sure what I did, but now I'm getting Error: short-name "postgres:14" did not resolve to an alias and no unqualified-search registries are defined in "/etc/containers/registries....
user avatar
  • 22.9k
1 vote
1 answer
117 views

Alpine Linux: Convert Podman systemd to openrc

I use Alpine Linux and podman command to generate container systemd Command: podman generate systemd -n test -f Output: # container-test # autogenerated by Podman 3.4.7 # Fri Apr 29 02:29:47 CEST ...
user avatar
0 votes
1 answer
68 views

SystemD JournalD cannot disable child process output

I am running SystemD version 249.7+ on a custom embedded Linux device with Kernel 5.10.50. I am using Podman 4.0.2 with Docker-Compose to run a few containers. The problem I have is that the 'conmon' ...
user avatar
  • 153
1 vote
0 answers
75 views

When a systemd service starts a rootless `podman run` process, why is its output not associated with the service in the journal?

I have a simple systemd service in /etc/systemd/system/logtest.service, which creates a Podman container that outputs some text: [Unit] Description=Systemd log test [Service] Type=oneshot ExecStart=...
user avatar
  • 178
0 votes
0 answers
31 views

podman persistent storage mapping, how to select the home folder to mount?

If I am using a httpd service or rsylog service in a container, and want to use a persistent storage directory on the host, how does directory mapping works. An example I have seen is: A home dir is ...
user avatar
  • 301
1 vote
0 answers
70 views

Is there a way to do delta updates for container images w/o a registry?

In the context of a non-connected machine which has limited space available, is there a way to update the container image using a diff/patch mechanism? Like you call docker pull but on a binary patch ...
user avatar
0 votes
1 answer
141 views

Change Podman container IP address

I installed a mtproto proxy image with Podman. When I run it I get the error message that the 443 port is already in use. Indeed httpd is using it. I have another IP address in the same server that is ...
user avatar
  • 306
2 votes
1 answer
1k views

Error: kernel does not support overlay fs: 'overlay' is not supported over extfs

When I run podman with --storage-opt ignore_chown_errors=true I am getting Error: kernel does not support overlay fs: 'overlay' is not supported over extfs at /home/user/.local/share/containers/...
user avatar
  • 22.9k
0 votes
1 answer
2k views

Podman errors on tar with potentially insufficient UIDs or GIDs available in user namespace

When I run podman run I'm getting a particularly weird error, ❯ podman run -ti --restart=unless-stopped -p 80:80 -p 443:443 rancher/rancher:latest ✔ docker.io/rancher/rancher:latest Trying to pull ...
user avatar
  • 22.9k
0 votes
2 answers
268 views

How can I get ng e2e to run under Alpine: it currently returns E/launcher - Error: spawn <location> 5 ENOENT

I'm running npx ng e2e from a docker CI environment under GitLab,. When I run it I get totally mundane setup/installation of chrome/webdriver.. [19:57:28] I/file_manager - creating folder /builds/...
user avatar
  • 22.9k
0 votes
1 answer
1k views

chrome: Passthrough is not supported, GL is swiftshader

I'm trying to run headless Chrome in a container using Alpine Linux, I'm getting Passthrough is not supported, GL is swiftshader The commands to get this are pretty simple, podman run -ti alpine:3 /...
user avatar
  • 22.9k
0 votes
1 answer
311 views

List containers from other users?

Is there a way to list all running podman containers on a machine, including those from other users? Even if I log in as root, podman ps -a just lists all containers for the user, but I want to see ...
user avatar
  • 232
0 votes
1 answer
226 views

Unable to start ubuntu through toolbox

I just installed Fedora 35 Kinoite and am taking it for a test drive. And, of course I am testing out the toolbox feature. Now I wanted to create & enter an Ubuntu container, it got created but ...
user avatar
  • 1,937
2 votes
1 answer
142 views

How can I inspect the amount of layers in my image?

Let's say I want to inspect the amount of layers in my image, how many times the image has been modified before it came to its final form, how can I do this?
user avatar
  • 22.9k
0 votes
1 answer
77 views

Can an image be rolled back?

If I'm working on an image with multiple layers, is it possible to rollback to a previous layer or reset to another layer in the image's stack? What is the podman equivalent of git reset --hard HEAD^ ...
user avatar
  • 22.9k
0 votes
0 answers
81 views

Podman commit and squish into prior commit (equivalent of git commit --amend for podman?)

If I want to take a container and image it, is there a way to do so and squish the resulting layer at the same time. Ideally, I would be able to merge multiple layers of the resulting image (at least ...
user avatar
  • 22.9k
1 vote
2 answers
56 views

Can I pull an image down from a repo and save it locally as a different name?

I can pull down an image with podman pull podman pull alpine:3 This currently pulls the image down as, REPOSITORY TAG IMAGE ID CREATED SIZE docker.io/library/...
user avatar
  • 22.9k
0 votes
1 answer
144 views

alias for podman docker-compose -H unix:///run/user/$UID/podman/podman.sock up -d

This command runs containers using podman rootless with docker-compose. Is it possible to create an alias for this? docker-compose -H unix:///run/user/$UID/podman/podman.sock up -d
user avatar
0 votes
2 answers
30 views

How do you set --author and --message for the image using buildah?

There is both a buildah commit and a podman commit however the buildah commit doesn't support --author or --message which is provided by podman. Is there a way to get this functionality with just ...
user avatar
  • 22.9k
2 votes
1 answer
406 views

Why does podman stop the container why I try to attach to it?

Just starting to learn containers so I probably have missed something / not read enough yet, but I have run into a strange behavior and am trying to understand what is happening. I tried googling but ...
user avatar
  • 317
0 votes
1 answer
664 views

Podman: cannot load TOML value of type map

I need to fetch this image for podman but there is a problem on registry.conf podman gives error podman run --name myfirstcontainer -it -v /home/jhon:/data:Z manjarolinux/base Error: error loading ...
user avatar
1 vote
0 answers
258 views

How to solve problem building images with Podman: "sd-bus call: Connection reset by peer"?

Building a PostgreSQL image with podman 3.1.2 (previous 3.0.1) results in sd-bus call: Connection reset by peer This also happens when executing example from Podman http://docs.podman.io/en/latest/...
user avatar
  • 111
2 votes
1 answer
442 views

How to switch systemd user/shell on remote server without logging in again via ssh?

This is a remote machine with SSH access and systemd. I basically have this error when I try to run systemd user commands: $ systemctl --user status Failed to connect to bus: $DBUS_SESSION_BUS_ADDRESS ...
user avatar
  • 2,196
3 votes
1 answer
4k views

Podman volume mounts: When to use the :z or :Z suffix?

The Podman man pages explains for volume mounts/binds: Labeling systems like SELinux require that proper labels are placed on volume content mounted into a container. Without a label, the security ...
user avatar
  • 2,196
0 votes
1 answer
873 views

How can I run mariadb and phpmyadmin podman containers and access my database from phpmyadmin?

I want to run database on CentOS Stream system using podman containers and access it with phpmyadmin that is running on another container. I created my mariadb container using this command: podman run ...
user avatar
  • 25
0 votes
0 answers
175 views

Docker/Podman Selinux Udica - Rootless Container unable to mount/run from mapped entrypoint script

I like to use steamcmd as dockercontainer rootless for my serveruser. But steamcmd should normally installed with normal user under /opt/steam/steamcmd/steamcmd.sh I created a custom steamcmd.sh which ...
user avatar
0 votes
1 answer
372 views

Podman build files with exit status 100

I'm trying to build a simple podman container but it fails with exit status 100: Command (not running as root!): podman build --tag testscript -f ./script/Dockerfile Dockerfile: FROM python:3.8-slim-...
user avatar
  • 111
0 votes
0 answers
48 views

Bash while loop odd behaviour when running podman build command in the loop [duplicate]

I am trying to use a simple bash while loop to build some podman images. The while loop reads lines from a file to get the image names and uses them to create image tag names and build context paths. ...
user avatar
3 votes
1 answer
1k views

Why systemd-nspawn is slower than docker,podman and qemu?! how to Improve nspawn performance?

Why nspawn is slow compared to docker podman and even qemu?! CPU tasks take twice of the time it takes in docker, podman or qemu Here is a benchmark test I did: First I disabled all the spectre/...
user avatar
0 votes
1 answer
1k views

How can I delete images without labels (label `<none>`) using podman?

When I run podman images, I see a bunch of images like this, $ podman images REPOSITORY TAG IMAGE ID CREATED SIZE localhost/tcms latest e6d31cbc5385 ...
user avatar
  • 22.9k
0 votes
0 answers
174 views

How does rootless podman attach to user namespaces?

In this question I get an answer which points to man 2 setns, In order to reassociate itself with a new network, IPC, time, or UTS namespace, the caller must have the CAP_SYS_ADMIN capability both in ...
user avatar
  • 22.9k
0 votes
1 answer
270 views

Can I use rootless podman with regular user-namespaces (created outside of podman)?

If I create a uts namespace using unshare and set the hostname to foo, $ unshare --map-root-user --uts /bin/sh # echo $$ 31882 # readlink /proc/31882/ns/uts uts:[4026532825] # hostname foo How can I ...
user avatar
  • 22.9k
2 votes
1 answer
1k views

Can't run fuse inside podman: fusermount: mount failed: Operation not permitted

I'm trying to design a podmod container that can run fuse inside, for example to use sshfs or run some appimages. However I get errors: fusermount: mount failed: Operation not permitted Any idea what'...
user avatar
  • 2,168
4 votes
1 answer
2k views

cgroups v2: cgroup controllers not delegated to non-privileged users on CentOS Stream (8)

I am currently trying to configure my more or less fresh installation of CentOS Stream (8) to delegate cgroup controllers to non-privileged users. However, I fail at this and I've searched the web for ...
user avatar
  • 61
0 votes
1 answer
761 views

docker import loses the image's name, repository, and tag

When I export an image with podman save --format oci-archive -o /tmp/image-oci.tar localhost/foobar-centos-7:92 Or, podman save --format docker-archive -o /tmp/image-docker.tar localhost/foobar-...
user avatar
  • 22.9k
0 votes
2 answers
157 views

Can docker pull an image visable in podman and buildah?

If I run buildah images, I see an image that is fully visable and functional with podman and buildah toolchain, $ buildah images REPOSITORY TAG IMAGE ID CREATED SIZE ...
user avatar
  • 22.9k
0 votes
1 answer
175 views

Using "podman start" with a command?

I have a container, and I need to run systemd inside of it like this, podman run -ti centos:7 /sbin/init Now let's say I make some modifications in that container and then I exit that container ...
user avatar
  • 22.9k
0 votes
1 answer
264 views

When is podman start's `-i` needed, and how does `-i` work on podman create?

podman create has a -i flag, and without the terminal's STDIN doesn't get sent the program you run in the container, for example (don't run this) podman run -t alpine:3 /bin/sh There is no way to ...
user avatar
  • 22.9k
1 vote
1 answer
721 views

Where does the output go to the command specified in `podman create`?

If I create a container with podman create, I can't seem to find any series of options that show the output of the command I'm running. For example, here we can run a container with "Hello World&...
user avatar
  • 22.9k
2 votes
2 answers
2k views

What does it mean for a container to have a running state?

When I run podman create followed by podman exec, I'm told that my container state is not running, $ ctr=$(podman create alpine:3) dc63e5975a918485b3d6a0ddf90576213b02d00e15fd84bab97732cf6d1f885a $ ...
user avatar
  • 22.9k
2 votes
1 answer
121 views

Why does `exec init` work in podman but not buildah with the same options?

How are these two commands different? Both of them launch a shell as pid 1 and make the same mounts and volumes, buildah run --tty --mount type=tmpfs,destination=/run -v /sys/fs/cgroup:/sys/fs/cgroup:...
user avatar
  • 22.9k
1 vote
1 answer
327 views

buildah: unknown shorthand flag: 'i' in -i

If I am to launch a container with podman I can use the -ti flags to connect my terminal to the container, $ podman run -ti centos:7 /bin/sh sh-4.2# exit But the same option I build with buildah it ...
user avatar
  • 22.9k
1 vote
2 answers
3k views

Podman can not kill containers: not running, but state improper

When I run podman container kill -a, I get can only kill running containers. 11d887d57069b3ee630fd6f1b13d600485c34f5020ff09fec65f4e31dd7242a5 is in state configured: container state improper can only ...
user avatar
  • 22.9k
0 votes
1 answer
92 views

podman container prune: Error: container not known

When I run podman container prune, I get $ podman container prune WARNING! This will remove all non running containers. Are you sure you want to continue? [y/N] y Error: container not known Same ...
user avatar
  • 22.9k