You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Try to connect to metadata: curl -X PUT "http://169.254.169.254/latest/api/token" -H "X-aws-ec2-metadata-token-ttl-seconds: 21600"
When I run the curl I get curl: (7) Failed to connect to 169.254.169.254 port 80 after 0 ms: Connection refused. I did try increasing the hop limit for the metadata service which didn't seem to change anything although I'd expect a different error if than the above if that was the issue.
It looks like the metadata server uril just isn't resolvable from inside the container. Is that expected? If so, any tips on network or other configuration I should look at? Anyone else succesfully connecting to the metadata service from containers on ec2 macs?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! I'm trying to run podman on a mac2.metal (M1 series) EC2 instance and running into issues connecting to the metadata server from containers.
Simplified steps that reproduce the issue:
podman machine init --cpus 2 -m 2048 --disk-size 10 --image-path stable --timezone local
.podman machine start
podman run -it ubuntu
apt update && apt install curl
curl -X PUT "http://169.254.169.254/latest/api/token" -H "X-aws-ec2-metadata-token-ttl-seconds: 21600"
When I run the curl I get
curl: (7) Failed to connect to 169.254.169.254 port 80 after 0 ms: Connection refused
. I did try increasing the hop limit for the metadata service which didn't seem to change anything although I'd expect a different error if than the above if that was the issue.It looks like the metadata server uril just isn't resolvable from inside the container. Is that expected? If so, any tips on network or other configuration I should look at? Anyone else succesfully connecting to the metadata service from containers on ec2 macs?
Beta Was this translation helpful? Give feedback.
All reactions