docker: Error response from daemon: failed to set up container networking 解决办法

问题描述

docker: Error response from daemon: failed to set up container networking: failed to create endpoint yesplaymusic on network bridge: Unable to enable DIRECT ACCESS FILTERING - DROP rule: (iptables failed: iptables --wait -t raw -A PREROUTING -d 172.17.0.2 ! -i docker0 -j DROP: iptables v1.8.11 (legacy): can't initialize iptables table `raw': Table does not exist (do you need to insmod?) Perhaps iptables or your kernel needs to be upgraded. (exit status 3))
  1. 编辑 /etc/docker/daemon.json.
    sudo nano /etc/docker/daemon.json
    
     
  2. 加入
    {
      "iptables": false
    }
    
     
     
    sudo systemctl restart docker
posted @ 2025-10-22 22:11  木子欢儿  阅读(23)  评论(0)    收藏  举报