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-v1.4
(release-v1.4/Dockerfile): Build for the 1.4 LTS 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.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:latest
First, 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.sock
This 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 peer
You 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.