Skip to content

Document com.docker.network.host_ipv4 driver option for bridge networks #22694

Open
@AkramiPro

Description

@AkramiPro

Is this a docs issue?

  • My issue is about the documentation content or website

Type of issue

I can't find what I'm looking for

Description

The com.docker.network.host_ipv4 driver option for Docker bridge networks is a valuable feature that allows users to specify the source IP address for outbound traffic (SNAT) originating from containers connected to that network. This is particularly useful in scenarios where the Docker host has multiple network interfaces or IP addresses and there's a need to control which IP is used for external communication from containers.

While this option is mentioned in community forums and some older GitHub issues, it lacks clear and comprehensive documentation on the official Docker documentation site (e.g., within the "Bridge network driver" section or the "Networks top-level elements" for Compose). This makes it difficult for users to discover, understand, and properly implement this functionality.

Location

https://docs.docker.com/reference/compose-file/networks

Suggestion

No response

Metadata

Metadata

Labels

area/engineIssue affects Docker engine/daemonarea/networkingRelates to anything around networkingstatus/triageNeeds triage

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions