How to get docker-compose to always re-create containers from fresh images?

后端 未结 7 2119
误落风尘
误落风尘 2020-11-29 15:13

My docker images are built on a Jenkins CI server and are pushed to our private Docker Registry. My goal is to provision environments with docker-compose which always start

7条回答
  •  感动是毒
    2020-11-29 15:52

    The only solution that worked for me was this command :

    docker-compose build --no-cache
    

    This will automatically pull fresh image from repo and won't use the cache version that is prebuild with any parameters you've been using before.

提交回复
热议问题