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>
This commit is contained in:
parent
c3991d0673
commit
8ca237054f
@ -525,9 +525,9 @@ Docker supports the following restart policies:
|
|||||||
<tr>
|
<tr>
|
||||||
<td><strong>unless-stopped</strong></td>
|
<td><strong>unless-stopped</strong></td>
|
||||||
<td>
|
<td>
|
||||||
Always restart the container regardless of the exit status, but
|
Always restart the container regardless of the exit status,
|
||||||
do not start it on daemon startup if the container has been put
|
including on daemon startup, except if the container was put
|
||||||
to a stopped state before.
|
into a stopped state before the Docker daemon was stopped.
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user