Rancher no auto restart, leave service in a failed state

When a service starts and a container fails Rancher will continuosly try to restart the container.

Is there a way to have rancher leave the service in a failed state and not continuously restart containers.

I know we have “start once” services, but I don’t want that because if you restart a “start once” service and it has a container, it will not do anything.

I saw a few other posts about this, but no resolution.


Also, shouldn’t there be a way to delay the restart? What is it currently. Instead of this not restarting, how about a way to just set the delay via a label?

EDIT: looks like there is an issue for this: https://github.com/rancher/rancher/issues/3096

Seems to be in a backlog, it would be great to have this.