Hyperledger fabric 无法从结构示例在结构上部署示例链码

Hyperledger fabric 无法从结构示例在结构上部署示例链码,hyperledger-fabric,Hyperledger Fabric,我正在尝试在结构测试网络上部署一个示例链代码。我打开网络,然后创建一个频道,然后运行以下命令:/network.sh deployCC,出现以下错误: Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: docker image

我正在尝试在结构测试网络上部署一个示例链代码。我打开网络,然后创建一个频道,然后运行以下命令:
/network.sh deployCC
,出现以下错误:

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保险丝”选项。 看见
有关更多详细信息

感谢您的回答。是的,我这样做了,因为它在HL Fabric readthedocs网站的常见问题中也被列为一个问题,但它不起作用。如果你仍然不能使它起作用,那么我建议只运行linux虚拟机,因为它可以避免一些平台问题。Docker for Mac仍然必须运行Linux虚拟机才能运行Linux容器。