Docker - Outgoing HTTPS requests timing out

最后都变了- 提交于 2020-01-25 10:09:24

问题


I am running my app using docker-compose. The app contains many containers. One container has a node.js app and other has a .net core app. When trying to send HTTPS requests to an outside server, from any of the containers, the request's timeout.

Docker is somehow blocking outgoing HTTPS requests.

On googling, everyone suggested changing MTU, so I changed it to 1400 but still no luck.

networks:
  backend:
    driver: bridge
    driver_opts:
      com.docker.network.driver.mtu: 1400

回答1:


Finally to get it working I had to set the mtu to 1300 in docker-compose.yml file. Also had to update the docker config file

/etc/docker/daemon.json with value { "mtu": 1300 }



来源:https://stackoverflow.com/questions/55761359/docker-outgoing-https-requests-timing-out

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!