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