简体   繁体   English

在超级账本结构上安装我的链码时,docker 构建被禁用错误

[英]docker build is disabled error when installing my chaincode on hyperledger fabric

I am creating a hyperledger fabric network using the following hyperledger fabric operator for kubernetes https://github.com/hyperledger-labs/hlf-operator I have my cluster configured in aws eks and it is currently running 3 nodes.我正在使用 kubernetes https://github.com/hyperledger-labs/hlf-operator的以下超级账本结构运算符创建一个超级账本结构网络我在 aws eks 中配置了我的集群,它目前正在运行 3 个节点。 I am following the documentation and so far all the steps of the implementation are working without problem, but when installing my chaincode it shows me the following message:我正在关注文档,到目前为止,实施的所有步骤都没有问题,但是在安装我的链代码时,它向我显示以下消息:

'InstallChaincode': could not build chaincode: docker build failed: docker build is disabled

Validate and change docker permissions but I don't understand what I am missing so that it can work and install my chaincode.验证并更改 docker 权限,但我不明白我缺少什么,以便它可以工作并安装我的链码。

I think it may be a permissions error in the eks, I am also validating the permissions我认为这可能是 eks 中的权限错误,我也在验证权限

I encountered the same problem and I finally solved it.我遇到了同样的问题,我终于解决了。 The problem is when you create your peer node right now (as of July 28, 2022), the version defaults to 2.3.0-v0.0.2 (you can find this kubectl hlf peer create --help and see the description next to the --version flag).问题是当您现在(截至 2022 年 7 月 28 日)创建对等节点时,版本默认为2.3.0-v0.0.2 (您可以找到此kubectl hlf peer create --help并查看--version标志)。 This peer version happens to be incompatible when deploying ccaas - chaincode as a service.在部署ccaas - 链码即服务时,此对等版本恰好不兼容。 So, the solution is to manually override the version using the --version flag while creating the peer node.因此,解决方案是在创建对等节点时使用--version标志手动覆盖版本。 Peer version 2.4.1-v0.0.4 solved this for me.对等版本2.4.1-v0.0.4为我解决了这个问题。

Please see the below command while creating a peer node for org1 .请在为org1创建peer节点时查看以下命令。

kubectl hlf peer create --statedb=couchdb --storage-class=standard --enroll-id=org1-peer --mspid=Org1MSP --enroll-pw=peerpw --capacity=5Gi --name=org1-peer0 --ca-name=org1-ca.fabric --version=2.4.1-v0.0.4 --namespace=fabric

Note the above steps apply only when you are using the peer image from quay.io/kfsoftware/fabric-peer which is the default image.请注意,仅当您使用来自quay.io/kfsoftware/fabric-peer的对等图像(默认图像)时,上述步骤才适用。 If you want to use other images use the --image tag.如果要使用其他图像,请使用--image标签。 Repeat the same steps while creating every peer node.在创建每个对等节点时重复相同的步骤。 This should solve your problem.这应该可以解决您的问题。 Hope this helps希望这可以帮助

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM