Local fabric binaries and docker images are out of sync.
执行./network.sh up语句发现出现警告,fabric二进制文件和镜像版本不一致。fabric二进制文件版本:2.3.0镜像版本:2.4.3[root@localhost test-network]# ./network.sh upUsing docker and docker-composeStarting nodes with CLI timeout of '5' tries and
·
执行./network.sh up
语句发现出现警告,fabric二进制文件和镜像版本不一致。
fabric二进制文件版本:2.3.0
镜像版本:2.4.3
[root@localhost test-network]# ./network.sh up
Using docker and docker-compose
Starting nodes with CLI timeout of '5' tries and CLI delay of '3' seconds and using database 'leveldb'
LOCAL_VERSION=2.3.0
DOCKER_IMAGE_VERSION=2.4.3
Local fabric binaries and docker images are out of sync. This may cause problems.
peer0.org2.example.com is up-to-date
orderer.example.com is up-to-date
peer0.org1.example.com is up-to-date
cli is up-to-date
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
21caae6bbc81 hyperledger/fabric-tools:latest "/bin/bash" 6 hours ago Up 6 hours cli
3a624444b3cf hyperledger/fabric-peer:latest "peer node start" 6 hours ago Up 6 hours 0.0.0.0:9051->9051/tcp, :::9051->9051/tcp, 7051/tcp, 0.0.0.0:9445->9445/tcp, :::9445->9445/tcp peer0.org2.example.com
cf821462d4c3 hyperledger/fabric-orderer:latest "orderer" 6 hours ago Up 6 hours 0.0.0.0:7050->7050/tcp, :::7050->7050/tcp, 0.0.0.0:7053->7053/tcp, :::7053->7053/tcp, 0.0.0.0:9443->9443/tcp, :::9443->9443/tcp orderer.example.com
0f59c549dffd hyperledger/fabric-peer:latest "peer node start" 6 hours ago Up 6 hours 0.0.0.0:7051->7051/tcp, :::7051->7051/tcp, 0.0.0.0:9444->9444/tcp, :::9444->9444/tcp peer0.org1.example.com
[root@localhost test-network]# peer version
peer:
Version: 2.3.0
Commit SHA: ec81f3e74
Go version: go1.14.12
OS/Arch: linux/amd64
Chaincode:
Base Docker Label: org.hyperledger.fabric
Docker Namespace: hyperledger
解决方法:
1.首先将当前的所有fabric镜像删除
进入 test-network 目录下,删除前请先关闭测试网络,
删除所有名字中带有 hyperledger的镜像
docker images | grep -E "(hyperledger)" | awk '{print $3}' | uniq | xargs -I {} docker rmi --force {}
[root@localhost test-network]# docker images | grep -E "(hyperledger)" | awk '{print $3}' | uniq | xargs -I {} docker rmi --force {}
Untagged: hyperledger/fabric-ca:1.5
Untagged: hyperledger/fabric-ca:1.5.3
Untagged: hyperledger/fabric-ca:latest
Untagged: hyperledger/fabric-ca@sha256:f4878c8fc60e71e509fa5827f04129bbb69e519fd89bca68b1dfabfc0272d5d5
Deleted: sha256:b2aed5002b3d4789e853c9ad0aa16be9c1f48d55ffca2652f94e5bc5ba89883f
Deleted: sha256:c0af2c9136668b9a60c930d934322217a9888c089a9c0550db3b53126d57ff0f
Deleted: sha256:63fa3155e17bc41def9ca7050b75057377d9b5e85fbb33c4dcf4964f2354d6b4
Deleted: sha256:b541d28bf3b491aeb424c61353c8c92476ecc2cd603a6c09ee5c2708f1a4b258
Error response from daemon: conflict: unable to delete 625237d887db (cannot be forced) - image is being used by running container 21caae6bbc81
Error response from daemon: conflict: unable to delete ee643d889779 (cannot be forced) - image is being used by running container 3a624444b3cf
Error response from daemon: conflict: unable to delete df64446ac2df (cannot be forced) - image is being used by running container cf821462d4c3
Untagged: hyperledger/fabric-ccenv:2.4
Untagged: hyperledger/fabric-ccenv:2.4.3
Untagged: hyperledger/fabric-ccenv:latest
Untagged: hyperledger/fabric-ccenv@sha256:ce54559826100a4a4504ba804182af64c9428b69d4b2ce90234d34d32c8d74e9
Deleted: sha256:da4f00cb576a91b25a1ae84ec531b1861f88aaec868fa41cc3cd1a91c1e5c672
Deleted: sha256:0185af6157805e1482cbd59f3236f13ac57b51a6958f7259a1c3c67d76d87ad6
Deleted: sha256:7722abac19290fdccf0aa6d943967bf465cd797b28ce3ae539aa62eee0da3d7a
Deleted: sha256:88ad5ec2df7ed709094b93ebc27960a9ce2e4a5a0de1fb65136e6cf78f2f661a
Deleted: sha256:ea4b0d34ec06ea99c82cd71760c5949c41c951d13f8d31a72a46045643919f06
Untagged: hyperledger/fabric-baseos:2.4
Untagged: hyperledger/fabric-baseos:2.4.3
Untagged: hyperledger/fabric-baseos:latest
Untagged: hyperledger/fabric-baseos@sha256:14e8994c0faa5ca5fbfe6ebcdb9dc42102ffae55d147fddcbbc2b19e570eab03
Deleted: sha256:0287ebf8aaf36ce24ff5bc32ae7c58098464c37c82cc859f897ec623e6b9ece6
Deleted: sha256:a8227204693cf3e0bdbcbc7ba64601feaebe024284d094143b4f6a4ce629e96a
2、修改bootstrap.sh文件
vim bootstrap.sh
修改为与fabric二进制文件相同版本2.3.0
3、保存退出 重新运行bootstrap.sh
===> List out hyperledger docker images
hyperledger/fabric-ca 1.5 b2aed5002b3d 7 weeks ago 68.1MB
hyperledger/fabric-ca 1.5.3 b2aed5002b3d 7 weeks ago 68.1MB
hyperledger/fabric-ca latest b2aed5002b3d 7 weeks ago 68.1MB
hyperledger/fabric-tools 2.4 625237d887db 3 months ago 473MB
hyperledger/fabric-tools 2.4.3 625237d887db 3 months ago 473MB
hyperledger/fabric-peer 2.4 ee643d889779 3 months ago 62.3MB
hyperledger/fabric-peer 2.4.3 ee643d889779 3 months ago 62.3MB
hyperledger/fabric-orderer 2.4 df64446ac2df 3 months ago 37.3MB
hyperledger/fabric-orderer 2.4.3 df64446ac2df 3 months ago 37.3MB
hyperledger/fabric-tools 2.3 2172e1e8ef5a 18 months ago 438MB
hyperledger/fabric-tools 2.3.0 2172e1e8ef5a 18 months ago 438MB
hyperledger/fabric-tools latest 2172e1e8ef5a 18 months ago 438MB
hyperledger/fabric-peer 2.3 a572d898402a 18 months ago 56MB
hyperledger/fabric-peer 2.3.0 a572d898402a 18 months ago 56MB
hyperledger/fabric-peer latest a572d898402a 18 months ago 56MB
hyperledger/fabric-orderer 2.3 0a77c2792890 18 months ago 39.2MB
hyperledger/fabric-orderer 2.3.0 0a77c2792890 18 months ago 39.2MB
hyperledger/fabric-orderer latest 0a77c2792890 18 months ago 39.2MB
hyperledger/fabric-ccenv 2.3 9432940881da 18 months ago 502MB
hyperledger/fabric-ccenv 2.3.0 9432940881da 18 months ago 502MB
hyperledger/fabric-ccenv latest 9432940881da 18 months ago 502MB
hyperledger/fabric-baseos 2.3 4dbd6846872b 18 months ago 6.39MB
hyperledger/fabric-baseos 2.3.0 4dbd6846872b 18 months ago 6.39MB
hyperledger/fabric-baseos latest 4dbd6846872b 18 months ago 6.39MB
更多推荐
已为社区贡献8条内容
所有评论(0)