Skip to content

Conversation

@vschnei
Copy link
Contributor

@vschnei vschnei commented Dec 11, 2025

Details

This pull request updates the README.txt documentation to include a new section on Docker MTU Troubleshooting (see issue #191 )
.
This change is to help users diagnose and resolve connectivity issues caused by MTU mismatches between Docker container networks and host/underlay networks (cloud).

The added section provides:

  • diagnostic steps
  • guidance on capturing PMTU-related issues
  • permanent configuration examples

Testing
Since this is a documentation-only change, no unit or integration tests apply.

Documentation

The new MTU section has been added directly to README.txt.

Style

The new content follows the existing README formatting.

Closing issues

#191

Summary by Sourcery

Documentation:

  • Document Docker MTU mismatch symptoms, diagnostic steps, and configuration options for temporary and permanent fixes in the README.

Signed-off-by: Valentin Schneider-Lunitz <valentin.schneider-lunitz@charite.de>
@vschnei vschnei requested a review from uniqueg December 11, 2025 10:26
@vschnei vschnei self-assigned this Dec 11, 2025
@vschnei vschnei added the priority: medium Medium priority label Dec 11, 2025
@sourcery-ai
Copy link

sourcery-ai bot commented Dec 11, 2025

Reviewer's Guide

Adds a new Docker MTU troubleshooting section to the README, documenting how to diagnose and permanently fix MTU-related connectivity issues between containers and external networks.

Flow diagram for Docker MTU troubleshooting steps

flowchart TD
  A[Container cannot reach external hosts] --> B[Run ip link show on host to check MTU of physical and bridge interfaces]
  B --> C[From container, run curl tests and inspect etc_resolv_conf]
  C --> D[Capture ICMP traffic on host with tcpdump while reproducing issue]
  D --> E{Suspect PMTU mismatch?}
  E -- No --> F[Investigate other network causes]
  E -- Yes --> G[Temporarily lower container eth0 MTU using nsenter and ip link set]
  G --> H[Test connectivity again from container]
  H --> I{Connectivity restored?}
  I -- No --> F
  I -- Yes --> J[Choose permanent fix]
  J --> K[Set global Docker daemon MTU in etc_docker_daemon_json and restart Docker]
  J --> L[Or set compose network MTU via networks_default_driver_opts in docker_compose_yaml]
  K --> M[Recreate networks_or_compose_stack]
  L --> M
  M --> N[Verify MTU with ip link and confirm with test curl from container]
Loading

File-Level Changes

Change Details Files
Document Docker MTU troubleshooting steps, temporary verification, and permanent configuration fixes in the README.
  • Explain MTU mismatch symptoms between container networks and host/underlay networks and their impact on TCP connectivity.
  • Provide quick diagnostic checks from both host and container, including MTU inspection, connectivity tests, and ICMP capture with tcpdump.
  • Describe a temporary MTU change procedure inside a running container’s network namespace to confirm PMTU-related issues.
  • Outline permanent MTU configuration options via Docker daemon global setting and docker-compose network driver options, including example snippets and post-change verification steps.
README.md

Possibly linked issues


Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey there - I've reviewed your changes - here's some feedback:

  • Consider formatting the subsections "Quick checks", "Temporary verification", and "Permanent fixes" as markdown subheadings (e.g., ### Quick checks) for better readability and consistent structure within the README.
  • The examples hard-code an MTU of 1400; it may help users if you add a brief note on how to determine an appropriate MTU value for their environment rather than implying 1400 is always correct.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- Consider formatting the subsections "Quick checks", "Temporary verification", and "Permanent fixes" as markdown subheadings (e.g., `### Quick checks`) for better readability and consistent structure within the README.
- The examples hard-code an MTU of 1400; it may help users if you add a brief note on how to determine an appropriate MTU value for their environment rather than implying 1400 is always correct.

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Copy link
Member

@uniqueg uniqueg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fantastic - thanks a lot, @vschnei ! Maybe mention somewhere what MTU means, but otherwise gtg

Signed-off-by: Valentin Schneider-Lunitz <valentin.schneider-lunitz@charite.de>
@vschnei
Copy link
Contributor Author

vschnei commented Dec 11, 2025

@uniqueg Thanks for the quick review.
Changes are done.

@uniqueg uniqueg merged commit ad053b9 into dev Dec 11, 2025
7 checks passed
@uniqueg uniqueg deleted the fix_mtu_issue_cloud branch December 11, 2025 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority: medium Medium priority

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants