This commit is contained in:
Naor Livne 2025-01-23 10:17:40 +00:00 committed by GitHub
commit 89552af6bf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View File

@ -558,7 +558,8 @@ class ContainerApiMixin:
restart_policy (dict): Restart the container when it exits.
Configured as a dictionary with keys:
- ``Name`` One of ``on-failure``, or ``always``.
- ``Name`` One of ``on-failure``, ``unless-stopped`` or
``always``.
- ``MaximumRetryCount`` Number of times to restart the
container on failure.
security_opt (:py:class:`list`): A list of string values to

View File

@ -744,7 +744,8 @@ class ContainerCollection(Collection):
restart_policy (dict): Restart the container when it exits.
Configured as a dictionary with keys:
- ``Name`` One of ``on-failure``, or ``always``.
- ``Name`` One of ``on-failure``, ``unless-stopped`` or
``always``.
- ``MaximumRetryCount`` Number of times to restart the
container on failure.