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

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

    from the manual docker-compose restart

    If you make changes to your docker-compose.yml configuration these changes will not be reflected after running this command.

    you should be able to do

    $docker-compose up -d --no-deps --build 
    

    The --no-deps will not start linked services.

提交回复
热议问题