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

如果本文帮助到了你,帮我点个广告可以咩(o′┏▽┓`o)


文章作者: Anubis
版权声明: 本博客所有文章除特別声明外,均采用 CC BY 4.0 许可协议。转载请注明来源 Anubis !
评论
  目录