Skip to content

Mandatory variable syntax in docker-compose.yml is strictly docker 18.04+ #6732

@jamiejackson

Description

@jamiejackson

Problem description

Docs don't specify that the mandatory variable syntax, ${MYVAR:?} doesn't work for docker stack until docker version 18.04.

Problem location

https://docs.docker.com/compose/compose-file/#variable-substitution

Suggestions for a fix

Add a note.


References:

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/composeRelates to docker-compose.yml spec or docker-compose binarylifecycle/locked

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions