Docker Container Configuration: Difference between revisions
Jump to navigation
Jump to search
Line 20: | Line 20: | ||
{ ... "RestartPolicy":{"Name":"no","MaximumRetryCount":0}, ... } | { ... "RestartPolicy":{"Name":"no","MaximumRetryCount":0}, ... } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Also see {{Internal|Docker - Start a Container Automatically|Start a Container Automatically}} |
Revision as of 06:22, 5 December 2017
Internal
Overview
The container configuration resides under /var/lib/docker/containers/<container-id>. Note that these files must not be edited directly. Configuration can be changed retrieved with:
docker inspect
and can be changed with:
docker update
hostconfig.json
RestartPolicy
The container's restart policy specifies how container are restarted when the docker server is restarted.
{ ... "RestartPolicy":{"Name":"no","MaximumRetryCount":0}, ... }
Also see