Skip to content

Variable name may not contain whitespace #6838

@alfredopalhares

Description

@alfredopalhares

Description of the issue

Docker compose does not recnognize a valid yaml file, even when validated with a yamlint.org.

Context information (for bug reports)

Output of docker-compose version

-> % docker-compose version
docker-compose version 1.24.1, build unknown
docker-py version: 4.0.2
CPython version: 3.7.4
OpenSSL version: OpenSSL 1.1.1c  28 May 2019

Output of docker version

Client:
 Version:           19.03.1-ce
 API version:       1.40
 Go version:        go1.12.7
 Git commit:        74b1e89e8a
 Built:             Sat Jul 27 21:08:50 2019
 OS/Arch:           linux/amd64
 Experimental:      false

Server:
 Engine:
  Version:          19.03.1-ce
  API version:      1.40 (minimum version 1.12)
  Go version:       go1.12.7
  Git commit:       74b1e89e8a
  Built:            Sat Jul 27 21:08:28 2019
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          v1.2.7.m
  GitCommit:        85f6aa58b8a3170aec9824568f7a31832878b603.m
 runc:
  Version:          1.0.0-rc8
  GitCommit:        425e105d5a03fabd737a126ad93d62a9eeede87f
 docker-init:
  Version:          0.18.0
  GitCommit:        fec3683

Output of docker-compose config
(Make sure to add the relevant -f and other flags)

ERROR: In file /home/masterkorp/Documents/prozis/repos/prozis-events/events-backend/docker/env/its.yaml: environment variable name 'host: hostname' may not contains whitespace.

Steps to reproduce the issue

Just tun any docker command

Observed result

Docker compose fails to run

Expected result

Should run

Additional information

OS Arch Linux Updated, but it happens accroos all OS.

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