tlu/salt/states/docker/files/registry-container.service

14 lines
301 B
SYSTEMD
Raw Permalink Normal View History

2021-09-26 10:11:06 +00:00
[Unit]
Description=Docker registry container
Wants=network.target
After=network-online.target
2021-09-26 10:11:06 +00:00
[Service]
Restart=on-failure
2021-09-26 10:11:06 +00:00
ExecStart=/usr/bin/podman start -a docker-registry
ExecStop=/usr/bin/podman stop -t 120 docker-registry
SuccessExitStatus=2
2021-09-26 10:11:06 +00:00
[Install]
WantedBy=multi-user.target default.target