Docker run: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 10: Line 10:


==--restart==
==--restart==
Configures the [[Docker_Concepts#Restart_Policy|restart policy]] of the container being created.


<pre>
<pre>

Revision as of 17:41, 19 April 2017

Internal

Overview

Creates a new container and runs the specified command in it.

Options

--restart

Configures the restart policy of the container being created.

docker run ... --restart=always ...

See

Start a Container Automatically