docker-compose报错信息while parsing a block mapping in "./docker-compose.yml", line 3

while parsing a block mapping in "./docker-compose.yml", line 1

This error should pay attention to whether the input of the full-width symbols, words in xshell in view of the bad editplus and notepad ++ is now the best of these tools to write and check good, go in copy

service 'restart' must be a mapping not a string.

This error is restart the indentation parameters of a problem.

Published 53 original articles · won praise 5 · views 20000 +

Guess you like

Origin blog.csdn.net/qq_40085888/article/details/104715557