Merge pull request #38770 from mitar/patch-2

dockerng module: Adding unless-stopped as an option to restart policy
This commit is contained in:
Mike Place 2017-01-17 07:55:42 -07:00 committed by GitHub
commit 073ee3f422

View File

@ -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