docker-compose keeps using old image content

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

    The process should be:

    docker-compose pull
    docker-compose up
    

    If you have volumes, then those will be persistent by design. If you need your volumes to not be persistent, then you may want to reconsider having that data inside a volume, or you'll need to reset the volume on every redeploy with a docker-compose down -v to remove the containers and the volumes.

    If you still have issues with this, make sure your install of docker and docker-compose are current.

提交回复
热议问题