docker-compose报错信息while parsing a block mapping in "./docker-compose.yml", line 3
作者:互联网
while parsing a block mapping in "./docker-compose.yml", line 1
这个错误要注意是否输入了全角的符号, 在xshell中不好查看的话最好现在editplus和notepad++这些工具中先编写和检查好,在copy进去
service 'restart' must be a mapping not a string.
这个错误是restart这个参数的缩进有问题.
标签:compose,line,mapping,parsing,报错,docker,yml 来源: https://blog.csdn.net/qq_40085888/article/details/104715557