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

docker stack name is not available as variable for docker-compose.yaml substitution #33780

Open
jmkgreen opened this issue Jun 22, 2017 · 1 comment
Labels
area/stack kind/enhancement Enhancements are not bugs or new features but can improve usability or performance.

Comments

@jmkgreen
Copy link

A docker-compose.yml allows for variable substitution including COMPOSE_PROJECT_NAME.

When launching a stack it would be useful for the stack name to be exposed as an environment variable for the same purpose. We use this for example to help attach to the correct network(s).

Workaround (example): jamesg@svc1:~/test-hub$ COMPOSE_PROJECT_NAME=test-hub docker stack deploy -c docker-compose.yml test-hub

Notice the obvious redundancy!

See also #26876

@vdemeester vdemeester added area/stack kind/bug Bugs are bugs. The cause may or may not be known at triage time so debugging may be needed. labels Jun 22, 2017
@dnephin dnephin added kind/enhancement Enhancements are not bugs or new features but can improve usability or performance. and removed kind/bug Bugs are bugs. The cause may or may not be known at triage time so debugging may be needed. labels Jun 22, 2017
@totshlager
Copy link

Hi,
Just wondering if anything like this has been implemented yet?
It would be ideal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/stack kind/enhancement Enhancements are not bugs or new features but can improve usability or performance.
Projects
None yet
Development

No branches or pull requests

4 participants