-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Add hostname parameter to Docker driver #426
Conversation
@carlosdp Won't this result into containers having the same name for TaskGroups with count more than 1? I think you would want the host name to be uniq in the cluster too? |
Not necessarily. when using something like weave, having the same hostname means that container is addressable at that DNS address. So all the postgres containers have the same |
I see. Can we please make this clear in the docs that setting this would result in all Containers of the Task groups to have the same host name? |
This LGTM, @dadgar and @cbednarski any thoughts? |
@diptanu done! |
@carlosdp Thanks! |
LGTM |
Add hostname parameter to Docker driver
I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions. |
This adds the
hostname
parameter to the Docker driver. This is useful because some service discovery packages, such as Weave, use the hostname to group together containers into a service (in lieu of using the container names, which are unique per host).