From 26c92664fd0d4ef1efdcf253a69c06aa05aa74ab Mon Sep 17 00:00:00 2001 From: jonas Date: Fri, 5 Nov 2021 13:29:48 +0100 Subject: [PATCH] new unit file for container added correct unit file definition, fixes #1 --- salt/states/docker/files/registry-container.service | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/salt/states/docker/files/registry-container.service b/salt/states/docker/files/registry-container.service index 1b6db80..7f36be5 100644 --- a/salt/states/docker/files/registry-container.service +++ b/salt/states/docker/files/registry-container.service @@ -1,10 +1,13 @@ [Unit] Description=Docker registry container +Wants=network.target +After=network-online.target [Service] -Restart=always +Restart=on-failure ExecStart=/usr/bin/podman start -a docker-registry ExecStop=/usr/bin/podman stop -t 120 docker-registry +SuccessExitStatus=2 [Install] -WantedBy=local.target +WantedBy=multi-user.target default.target