Docker-Compose file has yaml.scanner.ScannerError

后端 未结 17 2062
情话喂你
情话喂你 2021-02-01 12:04

compose.yml file, which looks like this:

version: \'2\'
services:
  discovery-microservice:
    build: discovery-microservice
      context: /discov         


        
17条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-01 12:47

    So, there is another reason! When you try to install r=Redash using the setup.sh from the Github, the script automatically gets the latest version of Redash and put it in docker-compose.yml. The base yml file doesn't have single-quotations (') around version name! As a result, you get an error that says:

    ERROR: yaml.scanner.ScannerError: mapping values are not allowed here in "./docker-compose.yml", line 3, column 23 You just add single-quotation around the Redash version:

    version: "2"
    x-redash-service: &redash-service
      image: 'redash/redash:8.0.0.b32245'

提交回复
热议问题