Have you ever wondered about running Podman in a container: Podman in Podman, Podman in Docker, or even Podman in Kubernetes?
One of the most asked about topics to folks working on upstream container technologies is running Podman within a container. Most of this has historically been related to Docker in Docker (DIND), but now, people also want to run Podman in Podman (PINP) or Podman in Docker (PIND).
But Podman can be run in multiple ways, rootful and rootless. We end up with people wanting to run various combinations of rootful and rootless Podman:
- Rootful Podman in rootful Podman
- Rootless Podman in rootful Podman
- Rootful Podman in rootless Podman
- Rootless Podman in rootless Podman
You get the picture.
This blog will attempt to cover each combination, starting with a discussion of privileges. We'll start with the PINP scenario here in part one. In part two of the series, we'll cover similar ground but do so within the context of Kubernetes. Be sure to read both articles for a complete picture.
Rootless Podman running rootless Podman
$ podman run \
--security-opt \
label=disable \
--user podman \
--device /dev/fuse \
quay.io/podman/stable \
\
podman run alpine echo hello

"Shot in the Dark" is the third single of Within Temptation 's album "The Unforgiving". Check www.within-temptation.com for more information about the song!
Datum Pos No. Name Best time In lap Best speed Diff Gap Laps Comment
29.04.2021 105 423 Frank Matthieß 01:49.597 15 120.452 00:18.735 00:00.121 15 Getting warm with the bike
30.04.2021 129 423 Frank Matthieß 01:48.407 24 121.774 00:17.746 00:00.050 33 1:1 Coaching by Mario Steffen
01.05.2021 144 423 Frank Matthieß 01:46.630 24 123.804 00:15.474 00:00.013 25 Time to practice
Lap progression: 2.967 seconds