Podman: Difference between revisions

From Alpine Linux
(Created page with "== Installation == The Podman package is in the 'Testing' repository. See Alpine_Linux_package_management how to add a repository. apk add podman To run Podman you'll...")
 
Line 1: Line 1:
== Installation ==
== Installation ==


The Podman package is in the 'Testing' repository. See [[Alpine_Linux_package_management]] how to add a repository.
The Podman package is from the alpine version 3.14 on in the 'community' repository.


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


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


podman run -d --rm --name nginx -p 80:80 docker.io/nginx:latest
  podman run --rm hello-world
curl localhost
podman stop nginx

Revision as of 16:54, 22 July 2021

Installation

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

 apk add podman


Run an example container to verify everything works

 podman run --rm hello-world