What is the use of “docker update” commands? with example and image
Used to change container configurations.
To update restart policy
docker update --restart=always 5337b0dc70e87be6c87309004abbc9eff8227a6b4c95cdf5a1b788bf96c6fb70
Before:
"RestartPolicy": {
"Name": "always",
"MaximumRetryCount": 0
},
After:
"RestartPolicy": {
"Name": "always",
"MaximumRetryCount": 0
},