用于开发Hyperledger Fabric的Docker镜像。
如果您想运行Fabric而非开发/编译,请参考https://github.com/yeasy/docker-compose-files#hyperledger%E3%80%82
支持的标签及对应Dockerfile链接
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/Dockerfile: 跟踪最新的master分支代码。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/release-v2.5/Dockerfile: 基于2.5版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v2.5.0/Dockerfile: 基于2.5.0版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/release-v2.4/Dockerfile: 基于2.4版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v2.4.7/Dockerfile: 基于2.4.7版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v2.4.5/Dockerfile: 基于2.4.5版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v2.4.0/Dockerfile: 基于2.4.0版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/release-v2.3/Dockerfile: 基于2.3版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v2.3.3/Dockerfile: 基于2.3.3版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v2.3.2/Dockerfile: 基于2.3.2版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v2.3.1/Dockerfile: 基于2.3.1版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v2.3.0/Dockerfile: 基于2.3.0版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/release-v2.2/Dockerfile: 基于2.2 LTS版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v2.2.9/Dockerfile: 基于2.2.9版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v2.2.8/Dockerfile: 基于2.2.8版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v2.2.4/Dockerfile: 基于2.2.4版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v2.2.3/Dockerfile: 基于2.2.3版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v2.2.2/Dockerfile: 基于2.2.2版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v2.2.1/Dockerfile: 基于2.2.1版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v2.2.0/Dockerfile: 基于2.2.0版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v2.1.0/Dockerfile: 基于2.1.0版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/release-v2.0/Dockerfile: 基于2.0版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v2.0.0/Dockerfile: 基于2.0.0版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/release-v1.4/Dockerfile: 基于1.4 LTS版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.4.12/Dockerfile: 基于1.4.12版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.4.11/Dockerfile: 基于1.4.11版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.4.10/Dockerfile: 基于1.4.10版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.4.9/Dockerfile: 基于1.4.9版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.4.8/Dockerfile: 基于1.4.8版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.4.7/Dockerfile: 基于1.4.7版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.4.6/Dockerfile: 基于1.4.6版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.4.5/Dockerfile: 基于1.4.5版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.4.4/Dockerfile: 基于1.4.4版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.4.3/Dockerfile: 基于1.4.3版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.4.2/Dockerfile: 基于1.4.2版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.4.1/Dockerfile: 基于1.4.1版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.4.0/Dockerfile: 基于1.4.0版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.3.0/Dockerfile: 基于1.3.0版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.2.0/Dockerfile: 基于1.2.0版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.1.0/Dockerfile: 基于1.1.0版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.1.0-rc1/Dockerfile: 基于1.1.0-rc1版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.0.6/Dockerfile: 基于1.0.6版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.1.0-alpha/Dockerfile: 基于1.1.0-alpha版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.1.0-preview/Dockerfile: 基于1.1.0-preview版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.0.5/Dockerfile: 基于1.0.5版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.0.4/Dockerfile: 基于1.0.4版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.0.3/Dockerfile: 基于1.0.3版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.0.2/Dockerfile: 基于1.0.2版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.0.1/Dockerfile: 基于1.0.1版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.0.0/Dockerfile: 基于1.0.0版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.0.0-rc1/Dockerfile: 基于1.0.0-rc1版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.0.0-beta/Dockerfile: 基于1.0.0-beta版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.0.0-alpha2/Dockerfile: 基于1.0.0-alpha2版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.0.0-alpha/Dockerfile: 基于1.0.0-alpha版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/0.6-dp/Dockerfile: 使用0.6-developer-preview分支代码。
有关此镜像及其历史的更多信息,请参见https://github.com/yeasy/docker-hyperledger-fabric%E4%B8%AD%E7%9A%84%E7%9B%B8%E5%85%B3%E6%B8%85%E5%8D%95%E6%96%87%E4%BB%B6%E3%80%82
如果您想无需任何配置和vagrant快速部署本地集群,请参考https://github.com/yeasy/docker-compose-files#hyperledger%E3%80%82
什么是docker-hyperledger-fabric?
包含Hyperledger Fabric开发环境的Docker镜像。
如何使用此镜像?
该Docker镜像在https://registry.hub.docker.com/u/yeasy/hyperledger-fabric/%E8%87%AA%E5%8A%A8%E6%9E%84%E5%BB%BA%E3%80%82
在Dockerfile中使用
sh
FROM yeasy/hyperledger-fabric:latest
本地开发
首先,确保您已安装Docker,并且守护进程配置如下:
sh
$ sudo docker daemon --api-cors-header="*" -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock
此镜像已安装开发环境,通常只需映射源代码并运行即可。
例如,如果您的Fabric代码位于your-fabric-code-path,可以通过以下命令运行make peer:
sh
$ docker run -it \
-v /var/run/docker.sock:/var/run/docker.sock \
-v your-fabric-code-path:/go/src/github.com/hyperledger/fabric \
yeasy/hyperledger-fabric \
make peer
您还可以将本地数据目录映射到/var/hyperledger/,配置目录映射到/etc/hyperledger。
基于哪个镜像构建?
该镜像基于https://hub.docker.com/_/golang%E9%95%9C%E5%83%8F%E6%9E%84%E5%BB%BA%E3%80%82
有哪些更改?
安装依赖
安装所需的libsnappy-dev、zlib1g-dev、libbz2-dev。
安装gotools
安装所需的gotools。
安装Hyperledger Fabric
安装Hyperledger Fabric并构建peer、orderer和ca。
支持的Docker版本
此镜像官方支持Docker 1.7.0+版本。
对旧版本(低至1.0)的支持基于尽力而为原则。
已知问题
用户反馈
文档
在尝试提交拉取请求之前,请务必熟悉https://github.com/yeasy/docker-hyperledger-fabric/blob/master/README.md%E6%96%87%E4%BB%B6%E3%80%82
问题
如果您对此镜像有任何问题或疑问,请通过https://github.com/yeasy/docker-hyperledger-fabric/issues%E4%B8%8E%E6%88%91%E4%BB%AC%E8%81%94%E7%B3%BB%E3%80%82
您也可以通过电子邮件联系许多官方镜像维护者。
贡献
欢迎您贡献新功能、修复或更新,无论大小;我们始终很高兴收到拉取请求,并会尽最大努力尽快处理。
在开始编码之前,我们建议通过https://github.com/yeasy/docker-hyperledger-fabric/issues%E8%AE%A8%E8%AE%BA%E6%82%A8%E7%9A%84%E8%AE%A1%E5%88%92%EF%BC%8C%E5%B0%A4%E5%85%B6%E6%98%AF%E5%AF%B9%E4%BA%8E%E6%9B%B4%E5%AE%8F%E5%A4%A7%E7%9A%84%E8%B4%A1%E7%8C%AE%E3%80%82%E8%BF%99%E4%BD%BF%E5%85%B6%E4%BB%96%E8%B4%A1%E7%8C%AE%E8%80%85%E6%9C%89%E6%9C%BA%E4%BC%9A%E4%B8%BA%E6%82%A8%E6%8C%87%E6%98%8E%E6%AD%A3%E7%A1%AE%E7%9A%84%E6%96%B9%E5%90%91%EF%BC%8C%E6%8F%90%E4%BE%9B%E5%AF%B9%E6%82%A8%E8%AE%BE%E8%AE%A1%E7%9A%84%E5%8F%8D%E9%A6%88%EF%BC%8C%E5%B9%B6%E5%B8%AE%E5%8A%A9%E6%82%A8%E4%BA%86%E8%A7%A3%E6%98%AF%E5%90%A6%E6%9C%89%E5%85%B6%E4%BB%96%E4%BA%BA%E6%AD%A3%E5%9C%A8%E4%BB%8E%E4%BA%8B%E7%9B%B8%E5%90%8C%E7%9A%84%E5%B7%A5%E4%BD%9C%E3%80%82