简体   繁体   中英

How to update the Docker image of running AWS ECS FARGATE task definition

I want to update my docker image in existing running AWS ECS FARGATE task. I could have go with new revision but when I run that task inside cluster, it is creating new public IP address.

I can't change my existing public IP. I only want to update my docker image of running task. What could be the possible solution?

Unfortunately if you're running the container as a publicly routable container it will always update the public IP address of the container whenever you update the task definition.

There is currently no support for elastic IP addresses in Fargate, which would be the solution you're looking for.

I would suggest if keeping the IP address is required that you look at re architecting your solution to the following:

  • Public facing Network Load Balancer with a static IP address
  • Fargate containers register to a target group of the Network Load Balancer.

Remember that if you had any kind of failure at the moment this might also cause your container to lose its IP address.

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