PS.本文不完全提供解決該問題方案,只提供解決該問題思路,內容可能比較跳躍,不連續,敬請諒解.
我這邊使用命令,安裝Fabric相關
curl -sSL https://bit.ly/2ysbOFE | bash -s -- 2.1.1 1.4.7 0.4.20
之後使用命令./network.sh up
啓動Fabric測試網絡,下載docker鏡像,最後報錯,信息如下:
15b622f630b3: Pull complete
b588d38a9b0f: Pull complete
Digest: sha256:59328549b3384f565cb5bd19b74c977820781e4709158666ead74fcd970c11e1
Status: Downloaded newer image for hyperledger/fabric-tools:latest
LOCAL_VERSION=2.1.1
DOCKER_IMAGE_VERSION=1.4.7
=================== WARNING ===================
Local fabric binaries and docker images are
out of sync. This may cause problems.
===============================================
**ERROR! Fabric Docker image version of 1.4.7 does not match the versions supported by the test network.**
錯誤的直接原因初步懷疑是本地的節點版本與需要下載的fabric-tools的節點版本不匹配
docker run --rm hyperledger/fabric-tools:latest peer version
查看hub.docker發現,該工具最新的是在2.1.1之後發佈的,實際檢測
這邊發現官網鏡像和我pull下來的鏡像sha256不一樣,估計有問題,我打算換版本,不使用latest;我看latest比2.1.1的時間還老,估計也是哪個娃兒昏了,整錯了;
這邊我手動pull2.1.1版本的tools,另外說一下,1.4版本的好像沒有test_network測試網絡