Skip to content

"docker run" compatibility for environment variables without values #1572

Description

@martin-helmich

After #1571, mw container run will raise an Error when just passing the name of an environment variable as flag (like --env FOO). Before, this was just undefined behaviour, in which the environment variable would (probably) have been set to an empty null value.

However, docker run actually behaves differently in this case, and would extract the value of the environment variable from the users local environment, instead.

Careful; this actually works with the regular old docker run command; in which case (--env FOO), the value of the environment variable is actually just read from your shell environment.

Originally posted by @martin-helmich in #1571

Activity

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions