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/globalping-probe.container
with the content below:
# Equivalent to sudo podman run -d --cap-add=NET_RAW --network host --restart=always \
# --name globalping-probe globalping/globalping-probe
[Unit]
Description=Globalping Probe Container
[Container]
ContainerName=globalping-probe
Image=docker.io/globalping/globalping-probe:latest
AutoUpdate=registry
Network=host
AddCapability=NET_RAW
## (Optional) Uncomment the line below and add your adoption token.
# Environment=GP_ADOPTION_TOKEN=<your token here>
[Service]
Restart=always
[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 globalping-probe
. - Enable automatic updates with
sudo systemctl enable podman-auto-update.{service,timer}
. - (Optional) set
Environment=GP_ADOPTION_TOKEN=<your token here>
to link the probe to your account.