[英]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.我想在现有正在运行的 AWS ECS FARGATE 任务中更新我的 docker 映像。 I could have go with new revision but when I run that task inside cluster, it is creating new public IP address.我可以有新版本的 go 但是当我在集群内运行该任务时,它正在创建新的公共 IP 地址。
I can't change my existing public IP.我无法更改我现有的公共 IP。 I only want to update my docker image of running task.我只想更新运行任务的 docker 映像。 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.不幸的是,如果您将容器作为可公开路由的容器运行,那么每当您更新任务定义时,它将始终更新容器的公共 IP 地址。
There is currently no support for elastic IP addresses in Fargate, which would be the solution you're looking for. Fargate 目前不支持弹性 IP 地址,这将是您正在寻找的解决方案。
I would suggest if keeping the IP address is required that you look at re architecting your solution to the following:如果需要保留 IP 地址,我建议您考虑将解决方案重新构建为以下内容:
Remember that if you had any kind of failure at the moment this might also cause your container to lose its IP address.请记住,如果您此时遇到任何类型的故障,这也可能导致您的容器丢失其 IP 地址。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.