Podman: Difference between revisions

From Alpine Linux
(Update for podman on 3.15)
mNo edit summary
Line 12: Line 12:
You might need to restart your machine for this to work properly.
You might need to restart your machine for this to work properly.


If you are running on top of btrfs, consider setting driver to btrfs:
If you are running on top of btrfs, consider setting storage driver to btrfs:


   +  $ cat /etc/containers/storage.conf | grep 'driver ='
   +  $ cat /etc/containers/storage.conf | grep 'driver ='

Revision as of 15:00, 16 February 2022

Installation

Podman can be installed via `podman` package in the community repository.

 # apk add podman

To run podman you'll need to enable the cgroups service, consider enabling cgroups v2.

 # rc-update add cgroups
 # rc-service cgroups start

You might need to restart your machine for this to work properly.

If you are running on top of btrfs, consider setting storage driver to btrfs:

 +   $ cat /etc/containers/storage.conf | grep 'driver ='
 driver = "btrfs"

For rootless support (replace <USER> with your username):

 # modprobe tun
 # echo tun >>/etc/modules
 # echo <USER>:100000:65536 >/etc/subuid
 # echo <USER>:100000:65536 >/etc/subgid

Run an example container to verify everything works:

 $ podman run --rm hello-world