-
Notifications
You must be signed in to change notification settings - Fork 2k
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
command option is not being overridden when using multiple compose files with docker stack deploy #1582
Comments
Ran into this same problem just now with version 19.03.2. Output of
|
having the same issue in latest docker.
After running
It executed Output of
|
Same here. I also tried providing the command as an array and as a list but it didn't help. |
A workaround suggested in #1651 is to create a combined compose file with
Or alternatively pipe it directly.
|
This is almost 2 years old, any chance to get any news? The documentation explicitly state that for "command" the expected behavior is to override the previous value, which "docker deploy" does not. Thanks |
This has been fixed in compose-go: compose-spec/compose-go#133 |
Description
I'm using multiple compose files for overriding service definitions for different environments, I noticed that when I try to override a service's
command
using another compose file it doesn't replace the original value but both values are used together.Steps to reproduce the issue:
command
option to any valuecommand
option in the first filedocker stack deploy -c docker-compose.yml -c docker-compose.dev.yml stack
docker service inspect SERVICE_NAME -f '{{ .Spec.TaskTemplate.ContainerSpec.Args }}'
Example compose file:
Another compose file to override the
command
option:Describe the results you received:
Both
command
values are used together.Describe the results you expected:
We expect the
command
option to be overriden.Additional information you deem important (e.g. issue happens only occasionally):
Output of
docker version
:Output of
docker info
:Additional environment details (AWS, VirtualBox, physical, etc.):
Tested on Docker CE versions 18.09.1-rc1 and 18.06.1 on both Debian 9 and VirtualBox (boot2docker) using docker-machine.
The text was updated successfully, but these errors were encountered: