报错信息:
ERROR: In file ‘./docker-compose.yml’, service ‘networks’ must be a mapping not an array.
ERROR: In file ‘./docker-compose.yml’, service ‘ports’ must be a mapping not an array.
解决方法:
这类错误 一般是docker-compose.yml文件中的缩进格式不正确(个人建议缩进长度不要超过四个空格)
ERROR: In file ‘./docker-compose.yml‘, service ‘networks‘ must be a mapping not an array.
最新推荐文章于 2024-04-29 20:15:05 发布