Docker-Compose file has yaml.scanner.ScannerError

后端 未结 17 2252
情话喂你
情话喂你 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:43

    1) Give a space after every colon whenever you do mapping after defining key.

    2) A YAML file uses 2(two spaces or tabs) indentation. -->It means that after every line you need to use two tabs,when you write a sentence in following line. I hope this will make easy to write any YAML file now.

提交回复
热议问题