You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using Docker CE For Windows (Version 2.0.0.0-beta1-win75 (19925) and using docker stack deploy to deploy a workload against the local k8s cluster.
I see that environment values in my cmd session are not used. In the issue #939 there is a comment from @thaJeztah that says:
Environment variables that are substituted while processing the docker compose file are already possible
This don't seem to be true in Windows. I have one compose with following service:
Also variable TAG is defined. If I do a docker-compose config I see the image resolved to my tag, but when using docker stack deploy it resolves to latest (TAG environment variable is not used).
Output of docker version:
Client: Docker Engine - Community
Version: 18.09.0-ce-beta1
API version: 1.39
Go version: go1.10.4
Git commit: 78a6bdb
Built: Thu Sep 6 22:42:13 2018
OS/Arch: windows/amd64
Experimental: false
Server: Docker Engine - Community
Engine:
Version: 18.09.0-ce-beta1
API version: 1.39 (minimum version 1.12)
Go version: go1.10.3
Git commit: 78a6bdb
Built: Thu Sep 6 22:49:35 2018
OS/Arch: linux/amd64
Experimental: true
Kubernetes:
Version: v1.10.3
StackAPI: v1beta2
Thanks for reporting! This looks like a duplicate of #1391, and should be fixed by #1392 / #1394, which will be included in an upcoming beta release.
This bug should only be in the Beta release ("edge" channel on Docker Desktop); you should be able to work around this by slightly modifying the compose file, otherwise install Docker Desktop from the stable channel, or wait for the next beta release.
I'll close this issue for housekeeping, but feel free to continue the conversation 👍
I found a solution (the difference is that I am using "docker-app" plugin but if you implement the same solution in your "docker compose" file, I think that it works), you can see it here:
Description
I am using Docker CE For Windows (Version 2.0.0.0-beta1-win75 (19925) and using docker stack deploy to deploy a workload against the local k8s cluster.
I see that environment values in my cmd session are not used. In the issue #939 there is a comment from @thaJeztah that says:
This don't seem to be true in Windows. I have one compose with following service:
Also variable TAG is defined. If I do a
docker-compose config
I see the image resolved to my tag, but when usingdocker stack deploy
it resolves tolatest
(TAG
environment variable is not used).Output of
docker version
:Output of
docker info
:Unfortunately **I can't use the "hack"
docker-compose config | docker stack deploy -c -
due to the issue #1403The text was updated successfully, but these errors were encountered: