docker stack name is not available as variable for docker-compose.yaml substitution #33780
Labels
area/stack
kind/enhancement
Enhancements are not bugs or new features but can improve usability or performance.
A
docker-compose.yml
allows for variable substitution includingCOMPOSE_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
The text was updated successfully, but these errors were encountered: