Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 749 Bytes

README.md

File metadata and controls

34 lines (25 loc) · 749 Bytes

docker networking issues

According to https://stfc.atlassian.net/wiki/spaces/CLOUDKB/pages/211877979/Fault+Fixes#Connectivity-https-services-seem-broken-from-inside-a-Docker-Container, docker https networking issues should be fixed by:

sudo iptables -I FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu

However it only fixes docker, not docker compose.

works

docker run --rm ubuntu /bin/bash -c \
  "apt update -qq && apt install -yqq wget && wget -O- https://github.com"

fails

# docker-compose.yml
services:
  test:
    image: ubuntu
    command:
    - /bin/bash
    - -c
    - apt update -qq && apt install -yqq wget && wget -O- https://github.com
docker compose up