Skip to content

Conversation

@kikkomep
Copy link

This PR adds a new option --share-etc-hosts to up and scale commands allowing hostname resolution between containers.

…ontainers

such that each container within a docker composition can resolve the hostname
of the others belonging to the same composition.

Signed-off-by: Marco Enrico Piras <kikkomep@crs4.it>
Signed-off-by: Marco Enrico Piras <kikkomep@crs4.it>
@aanand
Copy link

aanand commented Apr 30, 2015

Thanks for the PR. It's an interesting idea, but hostname resolution is what links (and the upcoming networking idioms) are for. This looks like a bit of a hack. What's the use case?

@kikkomep
Copy link
Author

The problem using links is that they do not support cyclic references between containers but I see that the upcoming network idioms do that.

@bfirsh
Copy link

bfirsh commented Jul 9, 2015

Thanks for the contribution @kikkomep, but this will indeed work once Docker's new networking is supported. See #1676. :)

@bfirsh bfirsh closed this Jul 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants