Docker Container Configuration: Difference between revisions

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


The container's restart policy specifies how container are restarted when the docker server is restarted.
The container's restart policy specifies how container are restarted when the docker server is restarted.
<syntaxhighlight lang='json'>
{ ... "RestartPolicy":{"Name":"no","MaximumRetryCount":0}, ... }
</syntaxhighlight>

Revision as of 06:19, 5 December 2017

Internal

Overview

The container configuration resides under /var/lib/docker/containers/<container-id>.

hostconfig.json

RestartPolicy

The container's restart policy specifies how container are restarted when the docker server is restarted.

{ ... "RestartPolicy":{"Name":"no","MaximumRetryCount":0}, ... }