当前镜像版本信息:
执行语句:创建通道
[root@localhost scripts]# cd fabric-samples/test-network
[root@localhost test-network]# ./network.sh createChannel
出现错误:Error: Post "https://localhost:7053/participation/v1/channels": dial tcp [::1]:7053: connect: connection refused
原因:没有开启测试网络
解决:开启测试网络
[root@localhost test-network]# ./network.sh up
出现新的错误:ERROR: Failed to Setup IP tables: Unable to enable SKIP DNAT rule: (iptables failed: iptables --wait -t nat -I DOCKER -i br-be62cd072759 -j RETURN: iptables: No chain/target/match by that name.
原因:关闭防火墙之后docker需要重启
解决:重启docker
[root@localhost test-network]# service docker restart
Redirecting to /bin/systemctl restart docker.service
再次启动测试网络,创建通道,终于成功了
[root@localhost test-network]# ./network.sh up
...
[root@localhost test-network]# ./network.sh createChannel
参考文档:
ERROR: Failed to Setup IP tables: Unable to enable SKIP DNAT rule_tianshuhao521的博客-CSDN博客