使用AWS re:Post即您表示您同意 AWS re:Post 使用条款

ECR login not working from IPv6 EC2 instance

0

I created an EC2 instance that has IPv6 address ONLY and the ECR login takes forever, I'm running this command below.

aws ecr get-login-password --region eu-west-1

It eventually times out.

Connect timeout on endpoint URL: "https://api.ecr.eu-west-1.amazonaws.com/"

I tried with another EC2 instance that includes a public IPv4 address in addition to IPv6 and it works fine. Any reason why ECR login doesn't work from IPv6?

已提问 1 年前1062 查看次数
1 回答
0
已接受的回答

Hello.

Looking at the issue below, it seems that you cannot pull images from ECR with IPv6 only.
I don't think the reason why IPv6 cannot be used has been made public.
I think AWS will probably support this in the future, but for now I think it's best to make ECR accessible via IPv4.
https://github.com/aws/containers-roadmap/issues/1340

profile picture
专家
已回答 1 年前
  • Thank you so much! Just a side note, now I have an interesting dilemma. AWS is starting to charge public IPv4 addresses at 1st February 2024. They want to encourage the acceleration of IPv6 adoption. That's why I'm here and considering the IPv4 pricing (not insignificant) I will do just that, stick with IPv6 only and replace ECR with some alternative unfortunately. I'm hoping AWS will add IPv6 support to ECR as soon as possible.

  • It's unfortunate that AWS charges for the use of IPv4 addresses and NAT gateways and doesn't support IPv6 in many of its services, making the transition to IPv6 impossible.

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则