new unit file for container
added correct unit file definition, fixes #1
This commit is contained in:
parent
44bf0fd4a7
commit
26c92664fd
@ -1,10 +1,13 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Docker registry container
|
Description=Docker registry container
|
||||||
|
Wants=network.target
|
||||||
|
After=network-online.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Restart=always
|
Restart=on-failure
|
||||||
ExecStart=/usr/bin/podman start -a docker-registry
|
ExecStart=/usr/bin/podman start -a docker-registry
|
||||||
ExecStop=/usr/bin/podman stop -t 120 docker-registry
|
ExecStop=/usr/bin/podman stop -t 120 docker-registry
|
||||||
|
SuccessExitStatus=2
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=local.target
|
WantedBy=multi-user.target default.target
|
||||||
|
Loading…
Reference in New Issue
Block a user