Quadlets are available since Podman 4.4, and offer an easy way to manage container and to keep them updated!
- Check
podman --version
. - Create
/etc/containers/systemd/peerbanhelper.container
with the content below:
[Unit]
Description=PeerBanHelper Container
[Container]
ContainerName=peerbanhelper
Image=docker.io/ghostchu/peerbanhelper:latest
# Replace /path/to/pbh-data with an actual path.
Volume=/path/to/pbh-data:/app/data
PublishPort=9898:9898
Network=host
AutoUpdate=registry
[Install]
WantedBy=multi-user.target default.target
- Reload with
sudo systemctl reload-daemon
. - Start the container now and on boot with
sudo systemctl enable --now peerbanhelper
. - Enable automatic updates with
sudo systemctl enable podman-auto-update.{service,timer}
.