Docker Bridge container cannot access the external network

Pingtong cannot be accessed (curl)

  1. Check the host network to see if the host network card is consistent with the docker bridge mtu
    image.png

  2. Edit /etc/docker/daemon.json and add the same mtu as the host network card

    {
    "mtu":1450
    }
  3. Restart the service

    $ systemctl daemon-reload
    $ systemctl restart docker
点赞(0)

评论列表 共有 0 评论

暂无评论

微信服务号

微信客服

淘宝店铺

support@elephdev.com

发表
评论
Go
顶部