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



我正在尝试在Fabric测试网络上部署一个示例ChainCode。我打开网络,然后创建一个通道,然后运行这个命令:./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熔丝";。看见https://lists.hyperledger.org/g/fabric/topic/77402508?p=Created,,,20,2,0,0::recentpostdate%2Fstick,,20,077402508有关更多详细信息,

如果您在macOS上运行Docker Desktop,则此问题是由macOS的新版本Docker Desktop引起的。要解决此问题,请在Docker Desktop首选项中,取消选中Use gRPC FUSE for file sharing复选框以使用旧版osxfs文件共享,然后单击Apply&重新启动。

如果您在创建、批准、提交、调用或查询命令时看到错误,请确保已正确更新通道名称和链代码名称。

相关内容

最新更新