bridge

package
v0.10.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package bridge provides Docker “bridge”-driver specific network configuration options. Please see also the Docker bridge driver documentation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithBridgeName

func WithBridgeName(ifname string) net.Opt

WithBridgeName instructs the “bridge” driver to use a pre-created or create a Linux kernel bridge with the specified name. If left unset, the “bridge” driver will automatically create a Linux kernel bridge with a name in “br-XXXXXXXXXXXX” format, where XXXXXXXXXXXX are taken from the first 12 hex digits of the Docker network ID.

See also: Docker's Bridge network driver options.

func WithInterfacePrefix

func WithInterfacePrefix(prefix string) net.Opt

WithInterfacePrefix sets the prefix to use for names of the container network interfaces attached to this custom Docker network. Defaults to “eth” prefix when left unset.

See also: Docker's Bridge network driver options.

func WithMTU

func WithMTU(mtu uint) net.Opt

WithMTU sets the MTU size.

See also: Docker's Bridge network driver options.

func WithoutICC

func WithoutICC() net.Opt

WithoutICC disabled inter-container communication on this custom Docker network.

See also: Docker's Bridge network driver options.

func WithoutIPMasquerade

func WithoutIPMasquerade() net.Opt

WithoutIPMasquerade disables IP masquerading for this custom Docker network.

See also: Docker's Bridge network driver options.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL