Skip to content

passing env object causes issues #269

Description

@alex-Symbroson

I'm using docker-desktop on windows and having issues when trying to pass an env object to any compose command.
Happens even if env is just an empty object

Its not a major issue because in my case I can fall back to regular docker commandOptions instead of defining env, but still wanted to let you know.

demo logs:

$ docker [ 'compose', 'up', '-d', 'myservice' ] {
  cwd: 'C:\\path\\to\\compose\\config',
  env: {}
}
E:  myservice:  unknown shorthand flag: 'd' in -d

works with env: undefined:

$ docker [ 'compose', 'up', '-d', 'myservice' ] {
  cwd: 'C:\\path\\to\\compose\\config',
  env: undefined
}
E:  myservice:  Network mynetwork  Creating
E:  myservice:
E:  myservice:  Network mynetwork  Created
E:  myservice:
E:  myservice:  Network mynetwork  Starting
E:  myservice:
E:  myservice:  Network mynetwork  Started

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions