News for hackers. Stuff that matters.
Re:Docker 1.10.0 is out by thejosh on Thursday February 04, 2016 @05:06PM (#11037677)
>Use DNS-based discovery instead of /etc/hosts #19198

This will end well...

Re:Docker 1.10.0 is out by CSDude on Thursday February 04, 2016 @05:18PM (#11037749)
It uses DNS for only discovering the other containers within the same custom network, if query is not found the DNS redirects the queries to your own DNS server, I don't see how it can be worse than /etc/hosts solution.
Re:Docker 1.10.0 is out by ChristianBundy on Thursday February 04, 2016 @05:53PM (#11037925)
Exactly, obviously /etc/hosts will still take precedence, but instead of munging your /etc/hosts when starting a container you can just use their DNS server. I don't see a problem with this.
Re:Docker 1.10.0 is out by snorii on Thursday February 04, 2016 @05:09PM (#11037694)
Could you explain why?

Simply from a learning perspective. I just don't know why and would like to know.

Re:Docker 1.10.0 is out by bpchaps on Thursday February 04, 2016 @09:19PM (#11038959)
Because /etc/nsswitch.conf exists to do exactly what's needed here. Now there's an extra layer of need-to-know that adds confusion. I can almost guarantee that there's going to be a major outage somewhere, someplace because of this change.
Re:Docker 1.10.0 is out by falcolas on Thursday February 04, 2016 @06:31PM (#11038125)
I tend to agree with you. Between time to live, caching, and various namespace conflicts, this could make for a very large troubleshooting headache.
Re:Docker 1.10.0 is out by shykes on Thursday February 04, 2016 @11:00PM (#11039299)
Docker assumes it cannot trust the container's DNS resolver to respect TTL and cache in a compliant way. So it guarantees stable name->ip mapping for each container. As a result, when you point a service endpoint at another container, it's the IP/container mapping that is changed, which is a much more reliable and atomic change. I would definitely never rely on changing DNS records to orchestrate changes to my production stack, that would be way too brittle.
Re:Docker 1.10.0 is out by falcolas on Friday February 05, 2016 @09:05AM (#11041424)
The real problem is that you can't trust the program's resolver, either. Java will behave differently than Go, which behaves differently from Python, and so on.
Re:Docker 1.10.0 is out by raimille1 on Thursday February 04, 2016 @05:09PM (#11037692)
This is when you specify you want a user defined network and want to rely on docker networking.

I'd give it some time before using that in production and use your own DNS/Service Discovery mix.