Editing Docker start configuration behavior and restart policy
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 18: | Line 18: | ||
<pre> | <pre> | ||
docker inspect -f "{{ .HostConfig.RestartPolicy }}" CONTAINER_NAME | docker inspect -f "{{ .HostConfig.RestartPolicy }}" CONTAINER_NAME | ||
+ | </pre> | ||
− | docker update --restart=no $(docker container ls -aq) | + | [[docker update]] [[--restart]]=no $(docker container ls -aq) |
docker inspect -f "{{ .HostConfig.RestartPolicy}}" $(docker ps -a -q) | docker inspect -f "{{ .HostConfig.RestartPolicy}}" $(docker ps -a -q) | ||
− | |||
== Related commands == | == Related commands == | ||
Line 31: | Line 31: | ||
* <code>[[docker ps]]</code> | * <code>[[docker ps]]</code> | ||
* <code>[[docker start]]</code> | * <code>[[docker start]]</code> | ||
− | |||
− | |||
== See also == | == See also == |
Advertising: