Skip to content
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

Fix for #1503 #1504

Closed
wants to merge 1 commit into from
Closed

Fix for #1503 #1504

wants to merge 1 commit into from

Conversation

octplane
Copy link

@octplane octplane commented Jun 3, 2015

(too naive ?) Fix for #1503

  • inject container name at creation in environment variables when
    available. The variable is name COMPOSE_CONTAINER_NAME

- inject container name at creation in environment variables when
  available. The variable is name COMPOSE_CONTAINER_NAME

Signed-off-by: Pierre Baillet <pierre@baillet.name>
@jippi
Copy link

jippi commented Dec 16, 2015

+1

@dnephin
Copy link

dnephin commented Jan 15, 2016

In the next release of docker and compose there will be support for network aliases backed by an embedded DNS server. This should allow you to query for the name of a container from dns instead of passing it in.

I think querying for the name is a more reliable solution because if the container name changes, you'll get the new name. With an environment variable you'd get the old name.

Thanks for the PR, but I don't think we'll be able to accept it at this time, so I'm going to close it.

@dnephin dnephin closed this Jan 15, 2016
@octplane
Copy link
Author

np, I've had ample time to find solutions to this problem since last June.

@varunchitturi
Copy link

np, I've had ample time to find solutions to this problem since last June.

Could you please mention the solutions you have found.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants