首页 > 其他分享 >ERROR: Failed to Setup IP tables: Unable to enable SKIP DNAT rule

ERROR: Failed to Setup IP tables: Unable to enable SKIP DNAT rule

时间:2023-11-15 09:55:38浏览次数:37  
标签:tables enable DNAT IP Failed Unable SKIP docker

1、错误场景和现象

Linux开启或重启防火墙后,使用默认驱动程序创建网络“docker-compose_default”

报错如下:

Creating network "docker-compose_default" with the default driver
ERROR: Failed to Setup IP tables: Unable to enable SKIP DNAT rule:  (iptables failed: iptables --wait -t nat -I DOCKER -i br-97f44f2d11cd -j RETURN: iptables: No chain/target/match by that name.
 (exit status 1))

2、原因分析

Docker属于容器化技术,如果宿主机防火墙的状态发生了改变,Docker就无法设置容器的IP了。

3、解决办法

关闭防火墙之后docker需要重启,执行以下命令重启docker即可:

service docker restart

 

标签:tables,enable,DNAT,IP,Failed,Unable,SKIP,docker
From: https://www.cnblogs.com/ckapple/p/17833192.html

相关文章

  • IPTABLES的参数解释
    iptables手册页总览用iptables-ADC来指定链的规则,-A添加-D删除-C修改iptables-[RI]chainrulenumrule-specification[option]用iptables-RI通过规则的顺序指定iptables-Dchainrulenum[option]删除指定规则iptables-[LFZ][chain][option]用iptables-LFZ链名[......
  • C++ insert into tables of pgsql via libpq-fe.h and compile by g++-13
    1.Installlibpq-devsudoaptinstalllibpq-devlocatelibpq-fe.h/usr/include/postgresql/libpq-fe.h 2.createtablet1createtablet1(idbigserialnotnullprimarykey,authorvarchar(40)notnull,commentvarchar(40)notnull,contentvarchar(40)notn......
  • Netfilter和iptables的实现机制(Linux)
    一:NetfilterNetfilter是是集成到Linux内核协议栈中的一套防火墙系统。它有4种类型,包括filter、nat、mangle、raw,具体是哪一种表,取决于数据包的处理方式。4种类型如下表所示:表类型说明包含的链接filter显示所有区域及其配置信息的列表INPUT、FORWARD、OUTPUTnat显示默认区域PREROTIN......
  • Nftables整型溢出(CVE-2023-0179)
    前言Netfilter是一个用于Linux操作系统的网络数据包过滤框架,它提供了一种灵活的方式来管理网络数据包的流动。Netfilter允许系统管理员和开发人员控制数据包在Linux内核中的处理方式,以实现网络安全、网络地址转换(NetworkAddressTranslation,NAT)、数据包过滤等功能。漏洞成因漏......
  • DataTables ajax
    DescriptionDataTablescanobtainthedatathatitistodisplayinthetablebodyfromanumberofsources,includingfromanAjaxdatasource,usingthisinitialisationparameter.Aswithotherdynamicdatasources,arraysorobjectscanbeusedforthe......
  • DataTables Table plug-in for jQuery
    DataTablesTableplug-inforjQueryDataTablesisaplug-inforthejQueryJavascriptlibrary.Itisahighlyflexibletool,baseduponthefoundationsofprogressiveenhancement,andwilladdadvancedinteractioncontrolstoanyHTMLtable.Pagination,ins......
  • MacOS使用PF实现iptables的端口转发功能
    目录准备web服务通过pf实现端口转发其他命令参考文章准备web服务使用Flask启动一个简单的web服务fromflaskimportFlaskapp=Flask(__name__)@app.route('/')defhello_world():return'HelloWorld!'if__name__=='__main__':app.run(port=5000)浏览器访......
  • 基于iptables防火墙堵漏
    之前在网上流传个段子:发现自己电脑被入侵,最有效的办法是即拔掉网线~虽然只是个段子,却说明一旦机器发现漏洞被入侵,阻断入侵刻不容缓,无论对个人电脑和业务服务器都是如此。商业服务器虽然有各种防护措施,但是也不能保证百分百安全,一旦被入侵处理起来可不能直接拔网线。具体处理措施......
  • Not creating XLA devices, tf_xla_enable_xla_devices not set TypeError: 'mod
     2021-02-2622:54:13.146272:Itensorflow/core/common_runtime/gpu/gpu_device.cc:1406]CreatedTensorFlowdevice(/job:localhost/replica:0/task:0/device:GPU:0with2989MBmemory)->physicalGPU(device:0,name:GeForceGTX1050,pcibusid:0000:01:0......
  • iptables 使用总结
       Linux系统的防火墙功能是由内核实现的2.0版内核中,包过滤机制是ipfw,管理工具是ipfwadm2.2版内核中,包过滤机制是ipchain,管理工具是ipchains2.4版及以后的内核中,包过滤机制是netfilter,管理工具是iptablesiptables用户态位于/......