Questions tagged [podman]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
11 views

Is a root shell any different from a container with CAP_SYS_ADMIN and bind mount to /?

If I start podman in the highly insecure mode, sudo podman run -ti \ -v /:/:bind \ --cap-add=cap_sys_admin \ alpine:3 \ /bin/sh Is there any way ...
-1
votes
1answer
32 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-...
0
votes
2answers
26 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 ...
0
votes
1answer
11 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 ...
0
votes
1answer
58 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 ...
1
vote
1answer
18 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&...
1
vote
2answers
41 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 $ ...
2
votes
1answer
52 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:...
1
vote
1answer
25 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 ...
0
votes
1answer
34 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 ...
0
votes
1answer
20 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 ...
0
votes
1answer
23 views

Is there a way to expose ports after a container is running?

Podman gives a mechanism to expose ports with --expose=port Expose a port, or a range of ports (e.g. --expose=3300-3310) to set up port redirection on the host system. Is there a mechanism to set ...
0
votes
0answers
14 views

Is it possible to exit `podman run -t` if standard input is redirected?

When I run podman run -t "" alpine:3 sh Everything works and is kosher, and I can exit by typing exit, or CONTROL+P, CONTROL+Q. However, if I run podman run -t "" alpine:3 sh <&...
0
votes
2answers
51 views

Why does buildah run support `--hostname`, but not podman exec?

Both buildah run, and podman exec run programs in active containers, buildah-run - Run a command inside of the container. podman-exec - Execute a command in a running container However, only buildah ...
0
votes
0answers
60 views

Podman vs Buildah: buildah from, run, and commit -versus- podman run, exec, and commit?

It seems we have the workflow to launch a container, and run commands inside of it, and commit it. buildah-from - Creates a new working container, either from scratch or using a specified image as a ...
0
votes
2answers
41 views

Why won't --uts=private allow me to set the hostname?

If I launch a container --uts=private, I still can't change the hostname. But it sounds like this is exactly what this is supposed to be for? What does --uts=private do? $ podman run -ti --uts=private ...
0
votes
1answer
42 views

podman run with --init gives me: Error: container-init binary not found on the host: stat /usr/libexec/podman/catatonit: no such file or directory

When I run podman run --init, I get $> podman run --init -ti cp /sbin/init Error: container-init binary not found on the host: stat /usr/libexec/podman/catatonit: no such file or directory But I ...
0
votes
1answer
59 views

How to reconcile rootless podman and buildah config-s, containers and images

My aim is to have podman and buildah working together locally on my PC: "rootless" with low-friction. I don't expect things to be perfect or seamless yet. The basis of my questions relate ...
1
vote
0answers
29 views

GitLab Coexisting with SSHD on Bridge Interface

Background I am attempting to convert a server from using Docker to Podman. So far I have been able to convert all of my services (~15 in total) to systemd jobs and run them without issue. In doing ...
2
votes
1answer
115 views

Connect to VNC server inside a docker / podman container with Login screen

We're currently trying to get a Ubuntu 18.04 instance up and running inside a podman container. Our goal is to be able to connect to the linux system inside the container via VNC, we're trying to make ...
1
vote
1answer
162 views

How can I enable user namespaces and have it persist after reboot?

When I run podman I get, $ podman info cannot clone: Operation not permitted user namespaces are not enabled in /proc/sys/kernel/unprivileged_userns_clone Error: cannot re-exec process How can I ...
0
votes
1answer
39 views

How do you prune with buildah?

When I run buildah containers, I see this CONTAINER ID BUILDER IMAGE ID IMAGE NAME CONTAINER NAME f5a361407499 * a24bb4013296 docker.io/library/alpine:latest ...
0
votes
1answer
239 views

Running a process under systemd init for containerization?

Docker provides for the ability to run a command when the container starts. This is specified with CMD in the Dockerfile. However, if I want my container to start with systemd I have to use, CMD [&...
0
votes
1answer
53 views

How to use docker-compose with podman?

My system does not provide dockerd anymore, but docker-compose requires dockerd in order to run How should I migrate existing configurations (such as this) which are built with docker-compose to ...
0
votes
1answer
347 views

How to grant read/write access through SELinux policy to a bind-mounted volume via rootless podman play kube?

I recently switched from Docker to Podman and created a Kubernetes compliant pod definition yaml file. The definition is loaded successful using rootless podman play kube command, then, declared Pod ...
0
votes
0answers
82 views

How a non root user can add users in linux

I am trying to launch a container on Centos 8 / RH 8 as a non root user and simultaneously I want to create on the fly a user dynamically to the container. I am using the entrypoint script to do that ...
1
vote
1answer
169 views

In a rootless container how to map a whole range of UDP ports from host to container?

I am wondering if there is a way to expose a range of UDP ports by mapping them 1:1 from host to container with a rootless container run with Podman. While the available resources contain information ...
0
votes
1answer
307 views

Run openvpn as non-root user

I'm trying to run openvpn server within podman unprivileged container. Openvpn needs to be able to manage network interfaces (i.e. create tun interface, assign IP address to it, bring it up). On my ...
0
votes
1answer
355 views

Mount file with 0600 permissions to podman

I have a problem with mounting file to podman. My file permissions is 0600 and it isn’t available to the container. If I use the --privileged option or volume propagation option z it is working. But ...
1
vote
0answers
90 views

Does rootless Podman support varlink?

I'm currently taking a look at a bunch of stuff with PodMan. One feature that I'd like is to be able to remotely interact with my pods—start and stop them from some other service. I saw the Varlink ...