Comments (1)
Thanks for asking.
docker-dns serves a couple different use cases
- service discovery using SRV records
- providing a bridge between non-docker (legacy) systems and docker containers
- multi docker-host environment support
- easing access to containers
I support a dev team that sometimes needs to log into containers via ssh in order to analyze various aspects of our integration environment. It's been very handy to write a wrapper script around ssh which looks up the mapped ssh port provided by the SRV records from docker-dns. That way even after restarting containers (with new code/configuration), the name is stable even if the port and internal IP has changed.
Because docker-dns supports multiple docker hosts, we can move that container to a different host and it's still available for SRV lookup.
wrt to --link, I sometimes prefer to use dns, though I see the utility of both. For example we run a hipache container for reverse proxy. I'd prefer not to have to have a dependency on the hipache --link on a variety of containers. Furthermore for some things like hipache which feel like docker infrastructure, I'd just assume have the ability to interact with them from the host or from other machines.
Also there are the dynamic aspects of SRV service discovery. If I bring up a new redis container, I'd like the application containers that are consuming our redis service to be able to find that new redis container without having to go back and touch them all.
There's all this but it's also awfully nice to be able to ping a container by it's host or image name and find it quickly. That saves me tons of time when I'm wiring things up.
Please do let me know if you try out docker-dns, and please post any other questions (or bugs) here.
from docker-dns.
Related Issues (10)
- Error on startup HOT 10
- DNS server doesn't solve all addresses HOT 1
- bind EINVAL error HOT 3
- TypeError: Cannot read property 'length' of null HOT 11
- does not point to localhost HOT 3
- Can ping url but not ssh to container HOT 4
- TypeError: Cannot read property 'internal' of undefined HOT 2
- Do not package logs
- can't find config.js
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-dns.