Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ports section in services.md #22368

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

chubi-x
Copy link

@chubi-x chubi-x commented Apr 4, 2025

Explicitly state the dangers if a port mapping binds to all interfaces

Description

We recently discovered that docker was bypassing our firewall rules when forwarding ports from a container using the standard <host port>:<container port> syntax. What this meant was that the container was effectively visible to the entire internet. It was only after some digging did we discover that it is possible and even recommended to explicitly bind the host port to localhost so it doesn't accept connections from everywhere. This PR updates the docs to explicitly state the potential dangers.

Reviews

  • Technical review
  • Editorial review
  • Product review

Explicitly state the dangers if a port mapping binds to all interfaces
@github-actions github-actions bot added the area/compose Relates to docker-compose.yml spec or docker-compose binary label Apr 4, 2025
Copy link

netlify bot commented Apr 4, 2025

Deploy Preview for docsdocker ready!

Name Link
🔨 Latest commit 0e96379
🔍 Latest deploy log https://app.netlify.com/sites/docsdocker/deploys/67eff39c558a5700086531e8
😎 Deploy Preview https://deploy-preview-22368--docsdocker.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@chubi-x chubi-x changed the title Update services.md Update ports section in services.md Apr 4, 2025
@aevesdocker aevesdocker self-requested a review April 4, 2025 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/compose Relates to docker-compose.yml spec or docker-compose binary
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant