Clarify behaviour of restart policy in run ref doc

This clarifies that the behaviour of `unless-stopped` will restart the container on daemon start.  This was implied before, but now the restart-on-daemon-start behaviour is mentioned directly.

Signed-off-by: David Beitey <david@davidjb.com>
(cherry picked from commit 8ca237054f)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
David Beitey
2018-03-25 14:14:12 +00:00
committed by Sebastiaan van Stijn
parent bb68afd0fc
commit 1df656a2f0

View File

@ -525,9 +525,9 @@ Docker supports the following restart policies:
<tr>
<td><strong>unless-stopped</strong></td>
<td>
Always restart the container regardless of the exit status, but
do not start it on daemon startup if the container has been put
to a stopped state before.
Always restart the container regardless of the exit status,
including on daemon startup, except if the container was put
into a stopped state before the Docker daemon was stopped.
</td>
</tr>
</tbody>