简体   繁体   中英

How can i Update container image with imagedigest parameter in aws fargate cluster with aws cli

I have running my cluster and task is running.

My need is want to update container image in running task in cluster how to do?

My Image is with latest tag and every time any new changes come will push to ecr on latest tag.

Deploying with the tag latest isn't a best practice because you loose a lot of visibility into what you are doing (eg scale out events where you deploy more tasks as part of a service will all end up using LATEST but will be effectively running different versions of the code, etc.).

This pontificating aside, you didn't say if you started your task(s) as standalone using the run-task API or if you started your task(s) as part of a service.

If the former, you need to stop your task and run it again. If the latter, you need to redeploy your service using the --force-new-deployment flag.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM