Back
Getting error while running Hyperledger locally with Docker.
Can someone help :
# docker-compose upERROR: yaml.parser.ParserError: while parsing a block mapping in “./docker-compose.yml”, line 1, column 1expected <block end>, but found ‘<block mapping start>’ in “./docker-compose.yml”, line 6, column 2
# 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
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”
membersrvc:
image: hyperledger/fabric-membersrvc
ports:
— “7054:7054”
command: membersrvc
vp0:
image: hyperledger/fabric-peer
— “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 :
# 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
# 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
Hi, you are 99.9% there, the mistake you made is extremely small, in the begining it should be
It should be “vp0:” , just remove the extra space and you are good to go.
31k questions
32.8k answers
501 comments
693 users