docker-compose keeps using old image content

后端 未结 3 638
滥情空心
滥情空心 2021-02-08 06:24

We use our gitlab-ci to build fresh images with the latest version of our code. These images are day to day built with the latest tag. We tag images during the rele

3条回答
  •  鱼传尺愫
    2021-02-08 07:22

    I just had this problem in dev too. docker-compose up uses an old image even though I have built the latest image. And if I manually run docker run in latest image I can see the new changes. What fixed for me is running:

    docker-compose up --build .

    Hope it helps!

提交回复
热议问题