我正在学习本教程:https://hyperledger.github.io/composer/latest/installing/development-tools
现在,我想以./startFabric.sh
启动超级账本结构,但随后出现此错误:
dany@DESKTOP-IQB2P0B:~/fabric-dev-servers$ ./startFabric.sh
Development only script for Hyperledger Fabric control
Running 'startFabric.sh'
FABRIC_VERSION is set to 'hlfv12'
FABRIC_START_TIMEOUT is unset, assuming 15 (seconds)
Removing network composer_default
WARNING: Network composer_default not found.
Creating network "composer_default" with the default driver
ERROR: Failed to Setup IP tables: Unable to enable NAT rule: (iptables failed: iptables --wait -t nat -I POSTROUTING -s 172.22.0.0/16 ! -o br-b49f324730b7 -j MASQUERADE: iptables: No chain/target/match by that name.
(exit status 1))
在出现此错误之前:https://github.com/docker/compose/issues/4181
但是我已修复它,现在出现此错误...
答案 0 :(得分:2)
试试:
iptables -t filter -N DOCKER
systemctl restart docker
检查这个:
https://github.com/moby/moby/issues/16816#issuecomment-179717327