2026-01-01 18:52:17 +07:00
|
|
|
[Unit]
|
2026-01-04 01:01:59 +07:00
|
|
|
Description=Rootless Podman-in-Podman
|
2026-01-01 18:52:17 +07:00
|
|
|
|
|
|
|
|
[Container]
|
2026-01-04 01:01:59 +07:00
|
|
|
Image=quay.io/podman/stable
|
2026-01-01 18:52:17 +07:00
|
|
|
ContainerName=dind
|
|
|
|
|
AutoUpdate=registry
|
|
|
|
|
SecurityLabelDisable=true
|
2026-01-04 01:01:59 +07:00
|
|
|
Unmask=ALL
|
|
|
|
|
AddDevice=/dev/fuse
|
|
|
|
|
HealthCmd=podman info || exit 1
|
2026-01-01 18:52:17 +07:00
|
|
|
HealthInterval=5s
|
|
|
|
|
HealthTimeout=3s
|
|
|
|
|
HealthRetries=5
|
2026-01-04 01:01:59 +07:00
|
|
|
User=podman
|
2026-01-04 13:34:30 +07:00
|
|
|
Volume=/var/containers/dind/data:/home/podman/.local/share/containers:Z
|
2026-01-04 01:01:59 +07:00
|
|
|
Volume=/var/run/dind:/var/run/1000:z
|
|
|
|
|
Exec=sh -c "podman system service --time=0 unix:///var/run/1000/docker.sock & PID=$!; while [ ! -S /var/run/1000/docker.sock ]; do sleep 0.1; kill -0 $PID 2>/dev/null || exit 1; done && chmod 0666 /var/run/1000/docker.sock && wait $PID"
|
2026-01-01 18:52:17 +07:00
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
|
Restart=always
|
|
|
|
|
RestartSec=10s
|
|
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
|
WantedBy=default.target
|