How do I deploy updated Docker images to Amazon ECS tasks?

前端 未结 12 1453
灰色年华
灰色年华 2021-01-29 22:00

What is the right approach to make my Amazon ECS tasks update their Docker images, once said images have been updated in the corresponding registry?

12条回答
  •  忘掉有多难
    2021-01-29 23:00

    If your task is running under a service you can force a new deployment. This forces the task definition to be re-evaluated and the new container image to be pulled.

    aws ecs update-service --cluster  --service  --force-new-deployment
    

提交回复
热议问题