Docker images for developing Hyperledger Fabric.
If you want to run fabric instead of dev/compiling, please refer to hyperledger-compose-files.
latest(latest/Dockerfile): Tracking latest master branch code.release-v2.4(release-v2.4/Dockerfile): Build for the 2.4 release.release-v2.3(release-v2.3/Dockerfile): Build for the 2.3 release.2.4.0(v2.4.0/Dockerfile): Build for the 2.4.0 release.2.3.3(v2.3.3/Dockerfile): Build for the 2.3.3 release.2.3.2(v2.3.2/Dockerfile): Build for the 2.3.2 release.2.3.1(v2.3.1/Dockerfile): Build for the 2.3.1 release.2.3.0(v2.3.0/Dockerfile): Build for the 2.3.0 release.release-v2.2(release-v2.2/Dockerfile): Build for the 2.2 LTS release.2.2.4(v2.2.4/Dockerfile): Build for the 2.2.4 release.2.2.3(v2.2.3/Dockerfile): Build for the 2.2.3 release.2.2.2(v2.2.2/Dockerfile): Build for the 2.2.2 release.2.2.1(v2.2.1/Dockerfile): Build for the 2.2.1 release.2.2.0(v2.2.0/Dockerfile): Build for the 2.2.0 release.2.1.0(v2.1.0/Dockerfile): Build for the 2.1.0 release.release-v2.0(release-v2.0/Dockerfile): Build for the 2.0 release.2.0.0(v2.0.0/Dockerfile): Build for the 2.0.0 release.release-v1.4(release-v1.4/Dockerfile): Build for the 1.4 LTS release.1.4.12(v1.4.12/Dockerfile): Build for the 1.4.12 release.1.4.11(v1.4.11/Dockerfile): Build for the 1.4.11 release.1.4.10(v1.4.10/Dockerfile): Build for the 1.4.10 release.1.4.9(v1.4.9/Dockerfile): Build for the 1.4.9 release.1.4.8(v1.4.8/Dockerfile): Build for the 1.4.8 release.1.4.7(v1.4.7/Dockerfile): Build for the 1.4.7 release.1.4.6(v1.4.6/Dockerfile): Build for the 1.4.6 release.1.4.5(v1.4.5/Dockerfile): Build for the 1.4.5 release.1.4.4(v1.4.4/Dockerfile): Build for the 1.4.4 release.1.4.3(v1.4.3/Dockerfile): Build for the 1.4.3 release.1.4.2(v1.4.2/Dockerfile): Build for the 1.4.2 release.1.4.1(v1.4.1/Dockerfile): Build for the 1.4.1 release.1.4.0(v1.4.0/Dockerfile): Build for the 1.4.0 release.1.3.0(v1.3.0/Dockerfile): Build for the 1.3.0 release.1.2.0(v1.2.0/Dockerfile): Build for the 1.2.0 release.1.1.0(v1.1.0/Dockerfile): Build for the 1.1.0 release.1.1.0-rc1(v1.1.0-rc1/Dockerfile): Build for the 1.1.0-rc1 release.1.0.6(v1.0.6/Dockerfile): Build for the 1.0.6 release.1.1.0-alpha(v1.1.0-alpha/Dockerfile): Build for the 1.1.0-alpha release.1.1.0-preview(v1.1.0-preview/Dockerfile): Build for the 1.1.0-preview release.1.0.5(v1.0.5/Dockerfile): Build for the 1.0.5 release.1.0.4(v1.0.4/Dockerfile): Build for the 1.0.4 release.1.0.3(v1.0.3/Dockerfile): Build for the 1.0.3 release.1.0.2(v1.0.2/Dockerfile): Build for the 1.0.2 release.1.0.1(v1.0.1/Dockerfile): Build for the 1.0.1 release.1.0.0(v1.0.0/Dockerfile): Build for the 1.0.0 release.1.0.0-rc1(v1.0.0-rc1/Dockerfile): Build for the 1.0.0-rc1 release.1.0.0-beta(v1.0.0-beta/Dockerfile): Build for the 1.0.0-beta release.1.0.0-alpha2(v1.0.0-alpha2/Dockerfile): Build for the 1.0.0-alpha2 release.1.0.0-alpha(v1.0.0-alpha/Dockerfile): Build for the 1.0.0-alpha release.0.6-dp(0.6-dp/Dockerfile): Use 0.6-developer-preview branch code.
For more information about this image and its history, please see the relevant manifest file in the yeasy/docker-hyperledger-fabric GitHub repo.
If you want to quickly deploy a local cluster without any configuration and vagrant, please refer to Start hyperledger clsuter using compose.
Docker image with hyperledger fabric dev environment.
The docker image is auto built at https://registry.hub.docker.com/u/yeasy/hyperledger-fabric/.
FROM yeasy/hyperledger-fabric:latestFirst, make sure u install Docker, and the daemon config is as the following.
$ sudo docker daemon --api-cors-header="*" -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sockThis image has already install the dev env, typically can just map your source code and run.
e.g, if your fabric code is at your-fabric-code-path, you can run make peer with the following cmd.
$ 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 peerYou can also map your local data dir to /var/hyperledger/, and config dir to /etc/hyperledger.
The image is built based on golang image.
Install required libsnappy-dev, zlib1g-dev, libbz2-dev.
Install required gotools
Install hyperledger fabric and build the peer, order and ca.
This image is officially supported on Docker version 1.7.0+.
Support for older versions (down to 1.0) is provided on a best-effort basis.
- N/A.
Be sure to familiarize yourself with the repository's README.md file before attempting a pull request.
If you have any problems with or questions about this image, please contact us through a GitHub issue.
You can also reach many of the official image maintainers via the email.
You are invited to contribute new features, fixes, or updates, large or small; we are always thrilled to receive pull requests, and do our best to process them as fast as we can.
Before you start to code, we recommend discussing your plans through a GitHub issue, especially for more ambitious contributions. This gives other contributors a chance to point you in the right direction, give you feedback on your design, and help you find out if someone else is working on the same thing.