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
Likes(0)

Comment list count 0 Comments

No Comments