部署这个真是头大,昨晚搞几个小时都没有搞定,今天下午搞定
基本环境准备参照
http://www.cnblogs.com/aberic/p/7531202.html
http://blog.csdn.net/weixin_41714277/article/details/79413458
http://blog.csdn.net/remote_roamer/article/details/70228662
不过问题多多,启动不起来。排过的坑列出一下:
有个小技巧:
go get github.com/hyperledger/fabric
可以生成github.com/hyperledger/fabric目录
=========================================
1 编辑当前用户(这里是root用户)的环境变量:
vi ~/.profile
添加以下内容:
export PATH=$PATH:/usr/local/go/bin
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export PATH=$PATH:$HOME/go/bin
编辑保存并退出vi后,记得把这些环境载入:
source ~/.profile
我们把go的目录GOPATH设置为当前用户的文件夹下,所以记得创建go文件夹
cd ~
mkdir go
2 最好在/etc/.profile 也同样加一下
3 由于本机部署过 fabric-samples,所以在启动
root@ThinkPad-T450:~/go/src/github.com/hyperledger/fabric/examples/e2e_cli# pwd
/root/go/src/github.com/hyperledger/fabric/examples/e2e_cli
root@ThinkPad-T450:~/go/src/github.com/hyperledger/fabric/examples/e2e_cli# ./network_setup.sh up
=================
过程总提示
ERROR: for orderer.example.com Cannot create container for service orderer.example.com: Conflict. The container name "/orderer.example.com" is already in use by container "d8f8d32ed879f29b8e9d3d13ed395b7f53966597838abfc907689d6432e34e25". You have to remove (or rename) that container to be able to reuse that name.
ERROR: for peer0.org1.example.com Cannot create container for service peer0.org1.example.com: Conflict. The container name "/peer0.org1.example.com" is already in use bStarting peer1.org2.example.com ... done
ERROR: for peer0.org1.example.com Cannot create container for service peer0.org1.example.com: Conflict. The container name "/peer0.org1.example.com" is already in use by container "0f6c11f8e8e120bae651604135c8e4b83ca487dc8b67b8906b7dbff296a42a2d". You have to remove (or rename) that container to be able to reuse that name.
ERROR: for orderer.example.com Cannot create container for service orderer.example.com: Conflict. The container name "/orderer.example.com" is already in use by container "d8f8d32ed879f29b8e9d3d13ed395b7f53966597838abfc907689d6432e34e25". You have to remove (or rename) that container to be able to reuse that name.
ERROR: Encountered errors while bringing up the project.
ERROR !!!! Unable to pull the images
===============
很明显是有容器冲突,要删除以前的容器。
查找容器所在位置
find / depthmax 5 -name '0f6c11f8e8e120bae651604135c8e4b83ca487dc8b67b8906b7dbff296a42a2d'
/var/lib/docker/image/overlay2/layerdb/mounts
/var/lib/docker/containers
=====================
docker常用命令如下:
杀死所有正在运行的容器
docker kill $(docker ps -a -q)
删除所有已经停止的容器
docker rm $(docker ps -a -q)
删除所有镜像
docker rmi $(docker images -q)
强制删除所有镜像
docker rmi -f $(docker images -q)
=====================
这里使用
docker kill $(docker ps -a -q)
docker rm $(docker ps -a -q)
/var/lib/docker/image/overlay2/layerdb/mounts
/var/lib/docker/containers
目录下的容器都已清除掉了。
重新启动,OK。
分享到:
相关推荐
这个是hyperledger fabric1.0.0的源码,需要的可以下载,谢谢!
HyperLedger/Fabric Platform-specific Binaries HyperLedger Fabric 平台特定文件 for macos: darwin-amd64 V1.0.0 ;configtxgen;cryptogen; 按照HyperLedger/Fabric提示执行的命令是无法运行起first-network这个...
hyperledger fabric1.0帮助文档
HyperLedger/Fabric Platform-specific Binaries HyperLedger Fabric 平台特定文件 for macos: darwin-amd64 V1.0.0 ;configtxgen;cryptogen; 按照HyperLedger/Fabric提示执行的命令是无法运行起first-network这个...
hyperledger-fabric-linux-amd64-1.0.0.tar.gz 直接通过bootstrap.sh下载会非常慢,这里已经下载了1.0.0的二进制文件,给需要趟坑的同志们用。但友情提醒一下,很可能不是这个的问题的导致的。你们遇到各种奇奇怪怪...
docker tag hyperledger/fabric-orderer hyperledger/fabric-orderer:x86_64-1.0.0 (cd build/docker/gotools/bin && tar -jc *) > build/gotools.tar.bz2 mkdir -p build/image/buildenv/payload cp build/go...
Hyperledger Fabric v0.5-开发人员-预览IBM Bluemix区块链服务v0.4.2 Hyperledger Fabric v0.6-开发人员-预览IBM Bluemix区块链服务v1.0.0 如果您只想在不完成本教程的情况下部署示例代码,那么在通过架构REST API...
1. d3.min.js,ldavis.v1.0.0.css,ldavis.v1.0.0.js三个文件内容 2. pyLDAvis的实例 3. 实例请参考:https://blog.csdn.net/weixin_35757704/article/details/123150467
主要功能 v1.0.0: 1、随机生成密码; 2、支持1~999位的密码长度(太长了也没多大意思^-^); 3、支持数字、大写字母、小写字母、符号格式的密码。 说明: 1、绿色版本,无需任何安装直接使用,不写注册表; 2、本...
GD32F10x_Firmware_Library_V1.0.0.rar
h y p e r l e d g e r f a b r i c 1 . 0 . 0 源码
戴尔服务器风扇调速器,dell_fans_controller_v1.0.0.zip,戴尔PowerEdge系列通用
HT6000V1.0.0编程软件rar,HT6000V1.0.0编程软件
电视盒 apk文件 阿狸影视v1.0.0(电视直播视频)电视盒 apk文件 阿狸影视v1.0.0(电视直播视频)电视盒 apk文件 阿狸影视v1.0.0(电视直播视频)电视盒 apk文件 阿狸影视v1.0.0(电视直播视频)电视盒 apk文件 阿狸...
DS-TPE3XX_Driver_build20200323_V1.0.0.exe
鸿途电子智慧白板_v1.0.0 鸿途电子智慧白板_v1.0.0 鸿途电子智慧白板_v1.0.0 鸿途电子智慧白板_v1.0.0
基于PHP的宅男视频网站php版v1.0.0源码.zip 基于PHP的宅男视频网站php版v1.0.0源码.zip 基于PHP的宅男视频网站php版v1.0.0源码.zip 基于PHP的宅男视频网站php版v1.0.0源码.zip 基于PHP的宅男视频网站php版v1.0.0源码...
fabric镜像文件及官方指定所需的二进制文件。
易推小程序智慧餐厅文档说明书v1.0.0.pdf易推小程序智慧餐厅文档说明书v1.0.0.pdf易推小程序智慧餐厅文档说明书v1.0.0.pdf易推小程序智慧餐厅文档说明书v1.0.0.pdf易推小程序智慧餐厅文档说明书v1.0.0.pdf易推小程序...