回答

4

您不能運行./network_setup.sh。在運行./netork_setup.sh之前,需要生成或停泊拉圖像。

sudo rm -Rf $GOPATH/src/github.com/hyperledger 
mkdir -pv $GOPATH/src/github.com/hyperledger 
cd $GOPATH/src/github.com/hyperledger 
git clone http://gerrit.hyperledger.org/r/fabric 
git clone https://github.com/hyperledger/fabric-ca 

cd $GOPATH/src/github.com/hyperledger/fabric 
git branch --all 
git fetch 
make clean 
make dist-clean 
make configtxgen 
make docker 
make peer-docker 
make orderer-docker 
make couchdb 

cd $GOPATH/src/github.com/hyperledger/fabric-ca 
git branch --all 
git fetch 
make clean 
make dist-clean 
make docker 

要自己生成圖像,請參考: https://github.com/hyperledger/fabric/blob/master/examples/e2e_cli/end-to-end.rst

要泊塢窗拉現有圖像,請參考: https://github.com/hyperledger/fabric/tree/master/examples/dchackfest/samples/e2e

+0

404。 –

10

此錯誤信息表明,目前還沒有現有的「公共Docker Hub上大多數「fabric- *」圖像中的「最新」標籤。我們必須指定我們想拉其圖像版本,無論是在碼頭工人的命令或碼頭,撰寫文件

您可以找到「織物訂貨人」 here

例如所有可用的標籤:

  1. 在搬運工命令

# pull to local before using it
docker pull hyperledger/fabric-orderer:x86_64-1.0.0-rc1
# rename it to 'latest'
docker tag hyperledger/fabric-orderer:x86_64-1.0.0-rc1 hyperledger/fabric-orderer:latest

  • 建議推薦:在docker撰寫文件中指定標籤
  • 請嘗試查找network_setup.sh中使用的docker-compose文件。

    如果使用1.0beta,它應該是泊塢窗,撰寫-cli.yaml

    在泊塢窗,撰寫-cli.yaml如果你看到:

    extends:
    file: base/docker-compose-base.yaml

    然後在基地/docker-compose-base.yaml如果你看到這一點:

    ...
    image: hyperledger/fabric-orderer
    ...

    將其更改爲

    image: hyperledger/fabric-orderer:x86_64-1.0.0-rc1

    此修訂建議也適用於織物等,織物-CA設置在鹼/搬運工-撰寫-base.yaml用於對準。

    +1

    附註:弄清楚要使用的標籤,看看該文檔的這一部分:下載並期待在shell腳本,看看它是如何,他們下載的二進制文件。 – 3cheesewheel

    5

    這爲我工作: 在YAML文件替換以下行:

    image: hyperledger/fabric-orderer 
    

    符合:

    image: hyperledger/fabric-orderer:x86_64-1.0.0 
    

    你可以選擇一些其他的版本,以及基於在泊塢窗樞紐可用性( https://hub.docker.com/r/hyperledger/fabric-orderer/tags/

    -1

    結束了和糾正上述錯誤之後。我不能超越下面一個...

    ./startFabric.sh 
    
    export MSYS_NO_PATHCONV=1 
    
    docker-compose -f docker-compose.yml down 
    

    您的最後一個環節上刪除網絡net_basic

    docker-compose -f docker-compose.yml up -d ca.example.com orderer.example.com peer0.org1.example.com couchdb 
    Creating network "net_basic" with the default driver 
    Pulling couchdb (hyperledger/fabric-couchdb:latest)... 
    

    ERROR: manifest for hyperledger/fabric-couchdb:latest not found