Docker Community Forums

Share and learn in the Docker community.

yaml.scanner.ScannerError while scanning a simple key

docker

(Kaushikosr) #1

ERROR: yaml.scanner.ScannerError: while scanning a simple key
in “./docker-compose.yml”, line 5, column 1
could not found expected ':'
in “./docker-compose.yml”, line 6, column 1
when I use yaml validator,the code is valid.but I am facing error when I docker-compose up