Install Rootless podman
- Install
podman
and slirp4netns
1
| sudo dnf install podman slirp4netns
|
- Enable additional subuids
1
| sudo usermod --add-subuids 100000-165535 --add-subgids 100000-165535 $USER
|
- (Optional) Migrate if there are containers running
- Test the new installation
1
| podman run -it --rm docker.io/alpine:latest /bin/sh
|
1
2
3
4
5
6
7
8
9
| [ecomaikgolf@laptop ~/]$ podman run -it --rm docker.io/alpine:latest /bin/sh
/ # cat /etc/os-release
NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.19.1
PRETTY_NAME="Alpine Linux v3.19"
HOME_URL="https://alpinelinux.org/"
BUG_REPORT_URL="https://gitlab.alpinelinux.org/alpine/aports/-/issues"
/ #
|
Source
- Additional
podman-compose
You can also install extras such as podman-compose
:
1
| sudo dnf install podman-compose
|
- Additional
podman-docker
If you want to keep using docker-based scripts but run them with podman, install
podman-docker
:
1
| sudo dnf install podman-docker
|