-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for labels? #6
Comments
Hmm, interesting idea. How do you envision this working? Some kind of rawdns-specific label for giving containers alternate names, especially multiple containers under the same name? |
This might be nice to do if we could specify something like the following: {
"docker.": {
"type": "containers",
"socket": "unix:///var/run/docker.sock",
"label": "rawdns.hostname"
}
} Using this method, if we define two containers like so: # container 1
docker run --label rawdns.hostname=web IMAGE
# container 2
docker run --name web IMAGE If a user requests If we have two or more containers with the same label, the IPs for both would be returned. |
One challenge with that is that the way FWIW, I'm still very interested in exploring #26 which would make this easier for other folks to implement/play with (and I think the example linked there already supports something related to container labels, in fact). |
Had you thought about the possibility of using container labels and dns?
The text was updated successfully, but these errors were encountered: