mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
8c8a25d524
This commit allows a user to specify a Host IP via the com.docker.network.host_ipv4 label which is used as the Source IP during SNAT for bridge networks . The use case is for hosts with multiple interfaces and this label can dictate which IP will be used as Source IP for North-South traffic In the absence of this label, MASQUERADE is used which picks the Source IP based on Next Hop from the Route Table Addresses: https://github.com/moby/moby/issues/30053 Signed-off-by: Arko Dasgupta <arko.dasgupta@docker.com> |
||
---|---|---|
.. | ||
labels.go | ||
labels_test.go |