解决 --- Docker 启动时报错:iptables:No chain/target/match by the name
生活随笔
收集整理的這篇文章主要介紹了
解决 --- Docker 启动时报错:iptables:No chain/target/match by the name
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
問題:jenkins的docker containner啟動失敗,報錯:failed programming external connectivity … iptables: No chain/target/match by that name”
?
docker 服務啟動的時候,docker服務會向iptables注冊一個鏈,以便讓docker服務管理的containner所暴露的端口之間進行通信
通過命令iptables -L可以查看iptables 鏈。
?
在開發環境中,如果你刪除了iptables中的docker鏈,或者iptables的規則被丟失了(例如重啟firewalld),docker就會報iptables error例如:failed programming external connectivity … iptables: No chain/target/match by that name
解決:重啟docker服務,正確的 iptables 規則就會被創建出來。
?
轉自:https://blog.csdn.net/a1010256340/article/details/79986959
總結
以上是生活随笔為你收集整理的解决 --- Docker 启动时报错:iptables:No chain/target/match by the name的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Qt-qml元素布局
- 下一篇: Mybatis 在 IDEA 中使用 g