Docker hot deployment Issue

  docker, question

Does docker have hot deployment’s thoughts?

When I deploy an application, do I need to stop all existing docker containers before starting a new one? How to ensure the service during this period? Because it is impossible to use one port for two containers at the same time.

Why do you need to stop the existing container?

There is no necessary connection between the container and the container. if your application is composed of multiple containers, such as a web container, a mysql container, the code of the web is updated. just update the web container. if the web container supports code hot update, there is no need to stop the service of the web container