Closed MovaUA closed 7 months ago
A PR is published to resolve the issue - see the PR #19116
Closed issues are locked after 30 days of inactivity. This helps our team focus on active issues.
If you have found a problem that seems similar to this, please open a new issue.
/lifecycle locked
Is this a docs issue?
Type of issue
Information is incorrect
Description
The option
on-failure
of therestart
actually supports specifying the optional maximum number of retries, but it is not mentioned on the site.Location
https://docs.docker.com/compose/compose-file/05-services/#restart
Suggestion
The issue can be fixed by changing the documentation in Compose file reference / Services top-level element / restart section similar to what Docker Engine / Containers/ Docker run reference / Restart policies (--restart) section says.