OpenShift CI/CD Concepts TODEPLETE: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 1: Line 1:
=tmp=
=tmp=


==Restart Policy==


The container's restart policy specifies how container are restarted when the docker server is restarted. It is maintained in <tt>/var/lib/docker/containers/<container-id>/hostconfig.json</tt> as:


<pre>
{ ... "RestartPolicy":{"Name":"no","MaximumRetryCount":0}, ... }
</pre>


Note that the json file must not be edited directly. If the restart policy has to be changed, that must be done with [[docker update]].
The policy for a specific container can be retrieved with [[Docker_inspect|docker inspect]].


Also see {{Internal|Docker - Start a Container Automatically|Start a Container Automatically}}
Also see {{Internal|Docker - Start a Container Automatically|Start a Container Automatically}}

Revision as of 06:21, 5 December 2017