Closed xueshanf closed 7 years ago
Okay, if I go through an ELB, which has private IP, such as http://clair.cluster.local, then it works. Not sure why localhost won't work (but curl works)...
You run Clair in a container, but port 6060 is exposed on a host. curl (local binary) can connect to it, localhost
means the local interface on the same host. However, when you run Klar in a container localhost
means local interface inside a container, not on your host. 2 most approachable solutions - use host names if possible (as you did) or use docker links to expose Clair ip to Klar.
@hashmap yup of course! they aren't in the same pod! Thanks a lot!
I have a clair container running locally and this works:
However, when I run klar container:
The clair container log doesn't show any connections. Any ideas?