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

后端 未结 10 1376
栀梦
栀梦 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:41

    If the docker compose configuration is in a file, simply run:

    docker-compose -f appName.yml down && docker-compose -f appName.yml pull && docker-compose -f appName.yml up -d
    

提交回复
热议问题