Podman: Difference between revisions

From Alpine Linux
(Added the missing steps to get rootless working)
(Brought back necessary steps to run podman)
Line 4: Line 4:


   apk add podman
   apk add podman
To run Podman you'll need to enable the cgroups service, see [[Alpine_Linux_Init_System]].
  rc-update add cgroups
  rc-service cgroups start


For rootless support:
For rootless support:

Revision as of 20:07, 17 November 2021

Installation

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

 apk add podman

To run Podman you'll need to enable the cgroups service, see Alpine_Linux_Init_System.

 rc-update add cgroups
 rc-service cgroups start

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