yangm97 / podman-static

Dockerized podman build

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

podman container image

This image provides an easy way to try out podman and a base for nested containerization scenarios where the child container should run as unprivileged user.

The alpine-based image contains the following statically linked binaries (without systemd support):

Containers need to be --privileged.

Before the entrypoint script runs the provided command as unprivileged user podman (100000) it does some workarounds:

  • Change the owner of the storage volume mount point (/podman/.local/share/containers/storage) to the unprivileged podman user.
  • Create cgroup from /proc/1/cgroup within /sys/fs/cgroup if it does not exist because inside the container this cgroup is the cgroup root.

Usage example

docker run --privileged mgoltzsche/podman:latest docker run alpine:latest echo hello from podman

Local build, test & run

./make.sh build test run

About

Dockerized podman build


Languages

Language:Dockerfile 68.6%Language:Shell 31.4%