Podman: Difference between revisions

From Alpine Linux
No edit summary
(Added the missing steps to get rootless working)
Line 5: Line 5:
   apk add podman
   apk add podman


For rootless support:
  apk add fuse-overlayfs shadow slirp4netns
  modprobe tun
  usermod --add-subuids 100000-165535 <user>
  usermod --add-subgids 100000-165535 <user>
  podman system migrate


Run an example container to verify everything works
Run an example container to verify everything works


   podman run --rm hello-world
   podman run --rm hello-world
For rootless Podman set uid/gid mapping
  usermod --add-subuids 100000-165535 <user>
  usermod --add-subgids 100000-165535 <user>
  podman system migrate

Revision as of 09:39, 25 August 2021

Installation

The Podman package is from the alpine version 3.14 on in the 'community' repository.

 apk add podman

For rootless support:

 apk add fuse-overlayfs shadow slirp4netns
 modprobe tun
 usermod --add-subuids 100000-165535 <user>
 usermod --add-subgids 100000-165535 <user>
 podman system migrate

Run an example container to verify everything works

 podman run --rm hello-world