mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 00:55:19 +00:00
Merge pull request #38770 from mitar/patch-2
dockerng module: Adding unless-stopped as an option to restart policy
This commit is contained in:
commit
073ee3f422
@ -1388,9 +1388,9 @@ def running(name,
|
||||
restart_policy
|
||||
Set a restart policy for the container. Must be passed as a string in
|
||||
the format ``policy[:retry_count]`` where ``policy`` is one of
|
||||
``always`` or ``on-failure``, and ``retry_count`` is an optional limit
|
||||
to the number of retries. The retry count is ignored when using the
|
||||
``always`` restart policy.
|
||||
``always``, ``unless-stopped``, or ``on-failure``, and ``retry_count``
|
||||
is an optional limit to the number of retries. The retry count is ignored
|
||||
when using the ``always`` or ``unless-stopped`` restart policy.
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user