如何为Hyperledger Fabric

时间:2018-05-30 15:49:49

标签: docker hyperledger-fabric

我对结构代码进行了更改,并希望通过使用docker-compose进行测试。我跑make peer; make docker。我看到以下内容。

mkdir -p build/image/peer/payload
cp build/docker/bin/peer build/sampleconfig.tar.bz2 build/image/peer/payload
mkdir -p build/image/orderer/payload
cp build/docker/bin/orderer build/sampleconfig.tar.bz2 build/image/orderer/payload
mkdir -p build/image/testenv/payload
cp build/docker/bin/orderer build/docker/bin/peer build/sampleconfig.tar.bz2 images/testenv/install-softhsm2.sh build/image/testenv/payload
mkdir -p build/image/tools/payload
cp build/docker/bin/cryptogen build/docker/bin/configtxgen build/docker/bin/configtxlator build/docker/bin/peer build/sampleconfig.tar.bz2 build/image/tools/payload

当我docker images时,我仍然会看到同一堆图像

hyperledger/fabric-orderer    latest    391b202306fa    3 weeks ago 180MB
hyperledger/fabric-orderer    x86_64-1.1.0 391b202306fa 3 weeks ago 180MB
hyperledger/fabric-peer       latest    e0f3bdb4506f    3 weeks ago 187MB
hyperledger/fabric-peer       x86_64-1.1.0 e0f3bdb4506f 3 weeks ago 187MB

如何从那里开始生成新的docker镜像?我错过了什么?

我使用的是Ubuntu 16.04。谢谢你的时间

1 个答案:

答案 0 :(得分:1)

cd build/image/peer/
docker build -t hyperledger/fabric-peer:x86_64-1.1.x .

更改docker-compose.yaml文件中的图像名称,你就可以了。