docs icon indicating copy to clipboard operation
docs copied to clipboard

Document `com.docker.network.host_ipv4` driver option for bridge networks

Open MahdiAkrami01 opened this issue 7 months ago • 0 comments

Is this a docs issue?

  • [x] 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

MahdiAkrami01 avatar May 23 '25 13:05 MahdiAkrami01