Closed ryancox closed 7 years ago
+1
did some testing and this looks good:
root@vagrant:/code/metadataproxy# ip addr show docker0 | grep "inet\b" | awk '{print $2}' | cut -d/ -f1
172.17.0.1
root@vagrant:/code/metadataproxy# iptables -t nat -L
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
DNAT tcp -- anywhere 169.254.169.254 tcp dpt:http to:172.17.0.1:45001
DOCKER all -- anywhere anywhere ADDRTYPE match dst-type LOCAL
🚀
/cc: @ryan-lane