问题描述
我正在尝试在Fabric测试网络上部署样本ChainCode.我启动网络,然后创建一个通道,然后运行以下命令: ./network.sh deployCC
并收到以下错误:
I am trying to deploy a sample ChainCode on Fabric test-network. I bring up the network and then I create a channel and then I run this command: ./network.sh deployCC
and I get the following error:
Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: docker image inspection failed: Get "http://unix.sock/images/dev-peer0.org1.example.com-basic_1.0-4ec191e793b27e953ff2ede5a8bcc63152cecb1e4c3f301a26e22692c61967ad-42f57faac8360472e47cbbbf3940e81bba83439702d085878d148089a1b213ca/json": dial unix /host/var/run/docker.sock: connect: no such file or directory
Chaincode installation on peer0.org1 has failed
Deploying chaincode failed
推荐答案
我猜您正在Mac上运行Docker?Docker在版本2.4.0.0中进行了更改(我认为),这引起了问题.您需要取消选中使用gRPC保险丝"选项.参见 https://lists.hyperledger.org/g/fabric/topic/77402508?p=已创建、、、 20、2、0、0 :: recentpostdate%2Fsticky 、、、,2,0,77402508 了解更多详情
I'm guessing you are running Docker on a Mac ? Docker made a change in version 2.4.0.0 (I think) and it causes a problem. You need to uncheck the option "use gRPC fuse".see https://lists.hyperledger.org/g/fabric/topic/77402508?p=Created,,,20,2,0,0::recentpostdate%2Fsticky,,,20,2,0,77402508for more details
这篇关于无法从Fabric-samples在Fabric上部署样本chaincode的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!