how to get docker-compose to use the latest image from repository

后端 未结 10 1393
栀梦
栀梦 2021-01-30 07:51

I don\'t know what I\'m doing wrong, but I simply cannot get docker-compose up to use the latest image from our registry without first removing the old containers f

10条回答
  •  佛祖请我去吃肉
    2021-01-30 08:42

    I've seen this occur in our 7-8 docker production system. Another solution that worked for me in production was to run

    docker-compose down
    docker-compose up -d
    

    this removes the containers and seems to make 'up' create new ones from the latest image.

    This doesn't yet solve my dream of down+up per EACH changed container (serially, less down time), but it works to force 'up' to update the containers.

提交回复
热议问题