问题:
fabric samples在执行./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 build failed: docker build failed: Error returned from build: 1 "
解决:
一、更换go语言版本,1.13 -> 1.15
1.下载
curl -L https://golang.google.cn/dl/go1.15.linux-amd64.tar.gz -o go1.15.linux-amd64.tar.gz
2.解压
sudo tar -C /usr/local -xzf go1.15.linux-amd64.tar.gz
3.配置环境变量
vim ~/.bashrc
在文件中添加以下语句