docker - 无法设置 IP 表 : Unable to enable NAT rule

标签 docker docker-compose hyperledger-fabric hyperledger hyperledger-composer

我正在做这个教程:https://hyperledger.github.io/composer/latest/installing/development-tools

现在我想用 ./startFabric.sh 启动 super 账本结构但后来我收到了这个错误:

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

但我修复了它,现在我有这个错误......

最佳答案

尝试:

 iptables -t filter -N DOCKER

 systemctl restart docker
检查这个:
https://github.com/moby/moby/issues/16816#issuecomment-179717327

关于docker - 无法设置 IP 表 : Unable to enable NAT rule,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54380847/

相关文章:

MongoDB Docker 初始化脚本

go - fabric-sdk-go 错误 : No peers to connect to

windows - 使用 Windows 10 编写第一个应用程序时出现 hyperledger Fabric 错误

macos - Docker错误正在运行镜像hyperkube-amd64:v1.7.0

docker - 如何为 docker 容器的日志着色

docker - 错误: for nodejs unauthorized: access to the requested resource is not authorized

docker-compose - Zipkin 跟踪不适用于 docker-compose 和 Dapr

docker - 将参数传递给 docker-compose.yml 中的服务

node.js - Hyperledger fabric : Error: chaincode argument error: json: cannot unmarshal array into Go struct field strArgs. 字符串类型的参数

docker - 通过 kubernetes 将 Flask 容器连接到 Redis 容器