Home  >  Q&A  >  body text

docker 热部署问题

docker有热部署的感念吗?

当我的部署了一个应用的时候,是否需要将现有的docker容器都停止之后才能重新开始新的容器?这其间的服务如何保证?因为不可能一个端口同时给两个容器用。

天蓬老师天蓬老师2758 days ago656

reply all(1)I'll reply

  • ringa_lee

    ringa_lee2017-04-24 09:13:16

    Why do I need to stop the existing container?

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

    reply
    0
  • Cancelreply