Q1. – What is the use of “docker update” commands? with example and image

It is used for updating container’s configuration. A container have different configurations. We can change those configurations via docker update command.

docker update –restart=on-failure:3 renamed1

In the above example we are changing the restart policy of a container.