Error while instantiating chaincode

+1 vote

Hi Team, We are setting up Hyperledger fabric on Rancher-Kubernetes.  Due to Security Policy we cannot access hostPath on Rancher-Kubernetes.  We are getting below error while instantiating chaincode :

2018-11-06 09:21:59.564 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc

2018-11-06 09:21:59.564 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc

Error: Error endorsing chaincode: rpc error: code = Unknown desc = error starting container: Post http://unix.sock/containers/create?name=nid1-org1peer1-cc-1.0: dial unix /host/var/run/docker.sock: connect: no such file or directory

Usage:

peer chaincode instantiate [flags]

2018-11-06 09:21:59.564 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc

2018-11-06 09:21:59.564 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc

Error: Error endorsing chaincode: rpc error: code = Unknown desc = error starting container: Post http://unix.sock/containers/create?name=nid1-org1peer1-cc-1.0: dial unix /host/var/run/docker.sock: connect: no such file or directory

Usage:

peer chaincode instantiate [flags]

can you please give me suggestion how can I proceed further?

Nov 6, 2018 in Blockchain by Vikas
• 130 points
1,402 views

1 answer to this question.

0 votes

Hey @Vikas! 

The error says,

dial unix /host/var/run/docker.sock: connect: no such file or directory

Have you started the docker services and daemons? 

You can check it with the following command:

service docker status

In most cases, the following command fixes this error:

service docker start 

or

systemctl start docker

Please let us know if this works :-)

answered Nov 6, 2018 by Omkar
• 69,220 points
Awesome! Works like a charm. Thanks

Related Questions In Blockchain

+1 vote
1 answer

Error while deploying chaincode in IBM Blockchain. Please help.

Try stripping out the 'tree/master' portion of ...READ MORE

answered Apr 26, 2018 in Blockchain by Christine
• 15,790 points
895 views
0 votes
1 answer

Error while Querying System Chaincode.

Do not interact directly with the ledger.. ...READ MORE

answered Jul 12, 2018 in Blockchain by digger
• 26,740 points
804 views
0 votes
1 answer
+2 votes
1 answer
0 votes
1 answer
0 votes
3 answers
0 votes
1 answer
0 votes
1 answer

Network issue while testing Chaincode.

You can do the following things: You can ...READ MORE

answered Jul 3, 2018 in Blockchain by Omkar
• 69,220 points
577 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP