8000 Variable substitution in YAML keys · Issue #5567 · docker/compose · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Variable substitution in YAML keys #5567
Closed
@mvasin

Description

@mvasin

Variable substitution works for YAML's array elements and hash values, but does not work for hash keys (see the last line):

version: "3"

services:
  ubuntu:
    image: ubuntu
    volumes:
      - $VOL

volumes:
  ${VOL}:

=>

$ VOL=some_vol docker-compose up
ERROR: The Compose file './docker-compose.yml' is invalid because:
volumes value '${VOL}' does not match any of the regexes: u'^[a-zA-Z0-9._-]+$'

I'm running docker-compose version 1.17.1, build 6d101fb.

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

      0