Podman
This tutorial connects Sablier to Podman. You will select the Podman provider, run Sablier with access to the Podman socket, register a container so Sablier can manage it, and confirm Sablier knows when the container is ready. The Podman provider communicates with the podman.sock socket to start and stop containers on demand.
Select the Podman provider
Set the provider.name property to podman.
provider:
name: podmanRun Sablier with the socket mounted:
services:
sablier:
image: sablierapp/sablier:1.15.0
restart: always
command:
- start
- --provider.name=podman
volumes:
- '/run/podman/podman.sock:/run/podman/podman.sock'Register a container
For Sablier to work, it needs to know which podman container to start and stop. Register a container by opting in with labels:
services:
whoami:
image: acouvreur/whoami:v1.10.2
restart: unless-stopped
labels:
- sablier.enable=true
- sablier.group=mygroupConfirm when the container is ready
If the container defines a Healthcheck, then it will check for healthiness before stating the ready status.
If the containers do not define a Healthcheck, then as soon as the container has the status started it is considered ready.