How to rebuild and update a container without downtime with docker-compose?

后端 未结 8 1508
春和景丽
春和景丽 2021-01-29 23:00

I enjoy a lot using docker-compose.

Eg. on my server, when I want to update my app with minor changes, I only need to git pull origin master && docker-comp

8条回答
  •  一整个雨季
    2021-01-29 23:20

    Don't manage your application environment directly. Use deployment tool like Rancher / Kubernetes. Using one you will be able to upgrade your dockerized application without any downtime and even downgrade it should you need to.

    Running Rancher is as easy as running another docker container as this tool is available in the Docker Hub.

提交回复
热议问题