Skip to content

Ability to set "privileged" flag (boolean) from environment var #4028

@brunocascio

Description

@brunocascio
version: '2'
services:
  mongo:
    image: mongo
    privileged: $PRIVILEGED

But I got this error output:

ERROR: The Compose file './docker-compose.yml' is invalid because:
services.mongo.privileged contains an invalid type, it should be a boolean

Might be accept the value "true" will make sense..

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions