A blood-bank nightly label job in Azure Container Instances must run once and stay stopped on success, but should retry if the process exits non-zero. Which restart policy matches that contract?
Select an answer to reveal the explanation.
Short Explanation
Always is a night watchman who never clocks out. Never walks away even after a crash. OnFailure is the sensible lab tech: try again when the run fails, hang up the coat when it succeeds.
Full Explanation
ACI restart policies map to run contracts: Always keeps restarting (daemon-style), Never never restarts, and OnFailure restarts only after non-zero exits—ideal for batch jobs that should retry failures but remain stopped after success. ACI does not use Docker’s unless-stopped as its batch default.