Class DockerNetwork
Describes a Docker network.
Namespace: Neon.Docker
Assembly: Neon.Docker.dll
Syntax
public class DockerNetwork
Constructors
DockerNetwork()
Default constructor.
Declaration
public DockerNetwork()
Properties
CheckDuplicate
Used when creating a network to have the Docker Engine verify that
network does not already exist. This defaults to false
.
Declaration
public bool CheckDuplicate { get; set; }
Property Value
Type | Description |
---|---|
bool |
Containers
Lists the containers attached to the network.
Declaration
public List<DockerNetworkContainer> Containers { get; }
Property Value
Type | Description |
---|---|
List<DockerNetworkContainer> |
Driver
The network driver.
Declaration
public string Driver { get; set; }
Property Value
Type | Description |
---|---|
string |
EnableIPv6
Indicates if the network is IPv6 enabled.
Declaration
public bool EnableIPv6 { get; set; }
Property Value
Type | Description |
---|---|
bool |
Id
Returns the network ID.
Declaration
public string Id { get; }
Property Value
Type | Description |
---|---|
string |
Inner
Returns the raw
Declaration
public dynamic Inner { get; }
Property Value
Type | Description |
---|---|
dynamic |
Internal
Indicates if the network is internal.
Declaration
public bool Internal { get; set; }
Property Value
Type | Description |
---|---|
bool |
Ipam
The network's IPAM configuration.
Declaration
public DockerNetworkIpam Ipam { get; }
Property Value
Type | Description |
---|---|
DockerNetworkIpam |
Labels
Lists the network labels.
Declaration
public Dictionary<string, string> Labels { get; }
Property Value
Type | Description |
---|---|
Dictionary<string, string> |
Name
The network name.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
Options
Lists the network options.
Declaration
public Dictionary<string, string> Options { get; }
Property Value
Type | Description |
---|---|
Dictionary<string, string> |
Scope
Returns the network scope.
Declaration
public string Scope { get; }
Property Value
Type | Description |
---|---|
string |