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