docker 错误提示 iptables No chain target match by that name

错误信息:iptables: No chain/target/match by that name.

问题描述

  • 重设宿主机网关、重启宿主机 network .
  • docker 容器处于运行状态,同网段机器不能访问 .
  • 宿主机执行开放端口命令,提示如下:
[root@localhost ~]# /sbin/iptables -A INPUT -p tcp --dport 8686 -j ACCEPT
iptables: No chain/target/match by that name.

解决办法

  • 1 查看最新防火墙配置(检查端口是否更新,如已经更新请进行下一步)
    • iptables -L
  • 2 重启 Docker 服务(更新端口)
service docker restart

猜你喜欢

转载自blog.csdn.net/qq_40790680/article/details/128971341