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

后端 未结 8 1507
春和景丽
春和景丽 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:38

    Another way:

    docker-compose restart in your case could be replaced with docker-compose up -d --force-recreate, see https://docs.docker.com/compose/reference/up/

提交回复
热议问题