docker-compose keeps using old image content

后端 未结 3 712
滥情空心
滥情空心 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:17

    According to the documentation, you can ignore data from previous volume with this:

    docker-compose up -d --force-recreate --renew-anon-volumes

    See https://docs.docker.com/compose/reference/up/

提交回复
热议问题