問題: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