简体   繁体   English

使用Docker在本地运行Hyperledger时出错

[英]Getting error while running Hyperledger locally with Docker

Getting error while running Hyperledger locally with Docker. 使用Docker在本地运行Hyperledger时出错。

Can someone help : 有人可以帮忙吗:

# docker-compose up
ERROR: yaml.parser.ParserError: while parsing a block mapping
 in “./docker-compose.yml”, line 1, column 1
expected <block end>, but found ‘<block mapping start>’
 in “./docker-compose.yml”, line 6, column 2

cat docker-compose.yml 猫docker-compose.yml

membersrvc:
 image: hyperledger/fabric-membersrvc
 ports:
 — “7054:7054”
 command: membersrvc
 vp0:
 image: hyperledger/fabric-peer
 ports:
 — “7050:7050”
 — “7051:7051”
 — “7053:7053”
 environment:
 — CORE_PEER_ADDRESSAUTODETECT=true
 — CORE_VM_ENDPOINT=unix:///var/run/docker.sock
 — CORE_LOGGING_LEVEL=DEBUG
 — CORE_PEER_ID=vp0
 — CORE_PEER_PKI_ECA_PADDR=membersrvc:7054
 — CORE_PEER_PKI_TCA_PADDR=membersrvc:7054
 — CORE_PEER_PKI_TLSCA_PADDR=membersrvc:7054
 — CORE_SECURITY_ENABLED=true
 — CORE_SECURITY_ENROLLID=test_vp0
 — CORE_SECURITY_ENROLLSECRET=MwYpmSRjupbT
 links:
 — membersrvc
 command: sh -c “sleep 5; peer node start — peer-chaincodedev”

I am trying this on AWS Amazon Linux ec2-instance : 我正在AWS Amazon Linux ec2-instance上尝试此操作:

# uname -a

    Linux ip-192–168–1–135 4.14.33–51.37.amzn1.x86_64 #1 SMP Thu May 3 20:07:43 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

ref : https://blog.craftworkz.co/run-hyperledger-locally-with-docker-4f3bcb815c03 参考: https : //blog.craftworkz.co/run-hyperledger-locally-with-docker-4f3bcb815c03

Got It! 得到它了!

Just need to take out the extra space at the start. 刚开始时只需要占用多余的空间。

It should be “vp0:” 它应该是“ vp0:”

Test the code here: https://yaml-online-parser.appspot.com/ 在此处测试代码: https : //yaml-online-parser.appspot.com/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 docker 在我的 Mac 上启动并运行,但“sam local invoke”命令导致错误:在本地运行 AWS SAM 项目需要 Docker - docker up and running on my Mac but "sam local invoke" command results in Error: Running AWS SAM projects locally requires Docker 运行 AWS Redshift docker 时出现空指针异常 - I am getting nullpointer exception while running AWS Redshift docker Docker 在为节点应用程序运行 npm install 时抛出错误 - Docker throws error while running npm install for node application 运行 docker-compose 命令时出现意外的文件结尾错误 - Unexpected end of file error while running docker-compose command Docker 容器不在本地运行(Flask 到 AWS ECS - 第 8 部分:Docker) - Docker container not running locally (Flask to AWS ECS - Part 8: Docker) 在本地尝试连接到在EC2实例上运行的Redis,但尽管所有流量都入站,但仍会出错 - Locally trying to connect to redis running on ec2 instance but getting error despite all traffic inbound 在Docker中访问文件时出现权限被拒绝错误 - Getting Permission Denied error while accessing a file in Docker Docker容器运行错误 - Docker Container running error 在运行 terraform 脚本以启动 aws 实例时出现此错误 - while running terraform script to launch aws instance getting this error 在本地运行 AWS SAM 项目出现错误 - Running AWS SAM projects locally get error
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM