ERROR: The Compose file ‘./docker/docker-compose-test-net.yaml‘ is invalid because: networks.test va

Fabric2.2搭建测试网络执行./network.sh up错误问题

ERROR: The Compose file ‘./docker/docker-compose-test-net.yaml’ is invalid because:
networks.test value Additional properties are not allowed (‘name’ was unexpected)

如果采用fabric2.2环境启动出现此错误
cd 到 test-network/docker中,将两个文件中的name注释即可
在这里插入图片描述

注释name:
在这里插入图片描述
重新启动测试网络!


关闭网络时:

ERROR: The Compose file ‘./docker/docker-compose-couch.yaml’ is invalid because:
networks.test value Additional properties are not allowed (‘name’ was unexpected)

也是由于没有把上面三个文件里的name注释掉导致的问题!

  • 7
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 4
    评论
As an AI language model, I don't have access to the content of the file './docker/docker-compose-test-net.yaml'. However, here are some common reasons that a Docker Compose file may be invalid: 1. Syntax errors: The file may contain syntax errors such as missing brackets, commas, or quotation marks. 2. Incorrect indentation: The indentation of the file may be incorrect, causing errors in the parsing of the file. 3. Incorrect version number: The version number of the file may be incorrect, causing the file to be invalid. 4. Invalid or misspelled service names: The names of the services defined in the file may be misspelled or invalid. 5. Invalid or missing network configuration: The network configuration in the file may be invalid or missing, causing errors in the creation of the network. 6. Invalid or missing environment variables: Environment variables defined in the file may be invalid or missing, causing errors in the execution of the services. 7. Invalid volumes or mounts: The volumes or mounts defined in the file may be invalid, causing errors in the mounting of the directories or files. 8. Invalid or missing dependencies: The dependencies defined in the file may be invalid or missing, causing errors in the execution of the services. 9. Incorrect or missing container configurations: The configurations of the containers defined in the file may be incorrect or missing, causing errors in the creation or execution of the containers. 10. Invalid or missing health checks: The health checks defined in the file may be invalid or missing, causing errors in the monitoring of the containers.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值