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

Environment option doesn't seem to work in Windows #2243

Closed
dracan opened this issue Oct 23, 2015 · 2 comments
Closed

Environment option doesn't seem to work in Windows #2243

dracan opened this issue Oct 23, 2015 · 2 comments

Comments

@dracan
Copy link

dracan commented Oct 23, 2015

Docker Compose seems to fail getting environment variables in Windows. I'm testing on Windows 10 (not tried on any other versions of Windows). Here's a simple YML file:

test:
  image: centos:centos6
  environment:
    MY_ENVIRONMENT_VARIABLE:

Regardless of whether MY_ENVIRONMENT_VARIABLE has been set, I get the following error:

Validation failed, reason(s):
Service 'test' configuration key 'environment' 'MY_ENVIRONMENT_VARIABLE' contains None, which is an invalid type, it should be a stringnumber or a boolean

This is with Docker Compose 1.5.0rc1.

@GraemeF
Copy link

GraemeF commented Oct 23, 2015

Specifically, this feature (from the docs) isn't working on Windows:

Environment variables with only a key are resolved to their values on the machine Compose is running on

@dnephin
Copy link

dnephin commented Oct 23, 2015

This was actually a bug for everyone (not just windows), and was fixed in #2225.
You can try it out with a build of master: https://dl.bintray.com/docker-compose/master/

The fix will be in rc2 (and the final release). If it's not working with master, please do re-open this issue.

@dnephin dnephin closed this as completed Oct 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants