Reputation: 21
I have installed the Hyperledger test-network on windows 10, following the procedure described in the Hyperledger homepage. I know it is better ran on Unix/Linux still, I have successfully created the default channel, and the sandboxes for Org1 and Org2 are up.
Continuing the default installation, while attempting to deploy the basic test chaincode I get the following "cannot connect to the Docker endpoint" Error:
$ ./network.sh deployCC -ccn basic -ccp ../asset-transfer-basic/chaincode-go -ccl go deploying chaincode on channel 'mychannel' executing with the following
Any idea is much appreciated, since i fight with this for a couple of days now...
Upvotes: 0
Views: 416
Reputation: 21
Solved. (Thank you @Gelu , @david_k)
The problem was that Docker did not expose the containers correctly to the Git-bash CLI I was using (...)
SO, I tried WSL2: it took me just about 30 minutes to set Ubuntu, install Hyperledger and GO in it and get the sample chaincode up and running.
I did not re-install Docker. I am using Docker Desktop version 4.1.1 (69879), which in Settings-->Resources-->WSL INTEGRATION has an amazing feature of exposing the containers to all WSL-installed distros(!).
The test chaincode runs fast and very smoothly since the very first attempt.
Upvotes: 1