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

Need way to call a specific auto-created service container (e.g., compose/reference/scale.md) #702

Closed
sslavic opened this issue Nov 23, 2016 · 4 comments
Assignees
Labels
area/compose Relates to docker-compose.yml spec or docker-compose binary lifecycle/locked

Comments

@sslavic
Copy link

sslavic commented Nov 23, 2016

File: compose/reference/scale.md

Do different service instances get instance identifiers auto assigned, and is that value exposed to the running container as some environment variable, e.g. generic DOCKER_INSTANCE_INDEX, or service specific variant DOCKER_service_INSTANCE_INDEX?

@londoncalling
Copy link
Contributor

@nathanleclaire @dnephin @ManoMarks @mstanleyjones Can you take a look at this question, and shed some light here?

@dnephin
Copy link
Contributor

dnephin commented Dec 6, 2016

Each container has a unique name, but the name is not exposed to the container. docker/compose#1503

@londoncalling
Copy link
Contributor

londoncalling commented Apr 4, 2017

@dnephin @shin- @nathanleclaire

Since this issue is under discussion in docker/compose#1503, I don't think it makes sense to update the docs with anything yet. If something changes per that issue, then we can update https://docs.docker.com/compose/reference/scale/ and https://docs.docker.com/compose/compose-file/#replicas with the information, and probably elsewhere in the docs.

Let me know if you disagree, and I'll re-open this.

@londoncalling londoncalling changed the title Feedback for: compose/reference/scale.md Need way to call a specific auto-created service container (e.g., compose/reference/scale.md) Apr 6, 2017
@londoncalling londoncalling added the area/compose Relates to docker-compose.yml spec or docker-compose binary label Apr 6, 2017
bermudezmt pushed a commit that referenced this issue Nov 7, 2018
Created Kube net encryption 669. Ready for review.
@docker-robott
Copy link
Collaborator

Closed issues are locked after 30 days of inactivity.
This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

/lifecycle locked

@docker docker locked and limited conversation to collaborators Nov 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/compose Relates to docker-compose.yml spec or docker-compose binary lifecycle/locked
Projects
None yet
Development

No branches or pull requests

4 participants