joyrex2001 / kubedock

Kubedock is a minimal implementation of the docker api that will orchestrate containers on a Kubernetes cluster, rather than running containers locally.
MIT License
216 stars 32 forks source link

Support for IPv6 #93

Open wruoting opened 3 months ago

wruoting commented 3 months ago

Hi! I am using kubedock in an IPv6 EKS cluster and running into the following:

W0710 14:15:07.637120 1 tcpproxy.go:99] error dialing 2600:1f18:22b:ed1f:ede::10:3306: dial tcp: address 2600:1f18:22b:ed1f:ede::10:3306: too many colons in address (attempt: 76)

when I try to use --reverse-proxy argument. Happy to provide more details or close this if it's a known issue, thanks!

wruoting commented 3 months ago

Looking at the docs for https://pkg.go.dev/net#Dial, it looks like the addresses for IPv6 just need to be wrapped with []. I'm happy to make a pull request for this if you think it's a good solution!

joyrex2001 commented 3 months ago

Yes, that makes sense and would be much appreciated.