无法从 docker 创建基于容器的镜像

问题描述 投票:0回答:0

我在 oracle 云中工作并从 docker hub 中提取图像。但是当尝试创建基于容器的图像时,我得到了错误。

docker: Error response from daemon: driver failed programming external connectivity on endpoint object-detection-app-cnt (ebc3f6524101e4c311e4d4904f1786584e60342554400c3318cc10706417a5fb):  (iptables failed: iptables --wait -t filter -A DOCKER ! -i docker0 -o docker0 -p tcp -d 172.17.0.2 --dport 5000 -j ACCEPT: iptables: No chain/target/match by that name.

(退出状态 1)).

我尝试运行以下命令来创建基于容器的图像。

docker run -d -p 5000:5000 --name object-detection-app-cnt mdtarek/object-detection-app

我目前的ip表规则是:

-A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 8080 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 5000 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 443 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 6443 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 6783 -j ACCEPT
-A INPUT -p tcp -m state --state NEW --match multiport --dport 10250,10257,10259 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 30000:32767 -j ACCEPT
-A INPUT -p udp -m state --state NEW --match multiport --dport 6783,6784 -j ACCEPT

docker kubernetes iptables oracle-cloud-infrastructure
© www.soinside.com 2019 - 2024. All rights reserved.