public interface CreateNetworkCmd extends SyncDockerCmd<CreateNetworkResponse>
RemoteApiVersion#VERSION_1_21
Modifier and Type | Interface and Description |
---|---|
static interface |
CreateNetworkCmd.Exec |
Modifier and Type | Method and Description |
---|---|
Boolean |
getAttachable() |
Boolean |
getCheckDuplicate() |
String |
getDriver() |
Boolean |
getEnableIPv6() |
Boolean |
getInternal() |
Network.Ipam |
getIpam() |
Map<String,String> |
getLabels() |
String |
getName() |
Map<String,String> |
getOptions() |
CreateNetworkCmd |
withAttachable(Boolean attachable)
If enabled, and the network is in the global scope, non-service containers on worker nodes will be able to connect to the network.
|
CreateNetworkCmd |
withCheckDuplicate(boolean checkForDuplicate) |
CreateNetworkCmd |
withDriver(String driver)
Name of the network driver to use.
|
CreateNetworkCmd |
withEnableIpv6(boolean enableIpv6) |
CreateNetworkCmd |
withInternal(boolean internal) |
CreateNetworkCmd |
withIpam(Network.Ipam ipam)
Ipam config, such es subnet, gateway and ip range of the network
|
CreateNetworkCmd |
withLabels(Map<String,String> labels)
Add label for network
|
CreateNetworkCmd |
withName(String name)
The new network's name.
|
CreateNetworkCmd |
withOptions(Map<String,String> options)
Driver specific options
|
exec
@CheckForNull String getName()
@CheckForNull String getDriver()
@CheckForNull Network.Ipam getIpam()
@CheckForNull Map<String,String> getOptions()
@CheckForNull Boolean getCheckDuplicate()
@CheckForNull Boolean getInternal()
@CheckForNull Boolean getEnableIPv6()
@CheckForNull Boolean getAttachable()
@CheckForNull Map<String,String> getLabels()
CreateNetworkCmd withName(@Nonnull String name)
CreateNetworkCmd withDriver(String driver)
bridge
.CreateNetworkCmd withIpam(Network.Ipam ipam)
CreateNetworkCmd withOptions(Map<String,String> options)
CreateNetworkCmd withCheckDuplicate(boolean checkForDuplicate)
CreateNetworkCmd withInternal(boolean internal)
CreateNetworkCmd withEnableIpv6(boolean enableIpv6)
CreateNetworkCmd withAttachable(Boolean attachable)
RemoteApiVersion#VERSION_1_21
CreateNetworkCmd withLabels(Map<String,String> labels)
RemoteApiVersion#VERSION_1_24
Copyright © 2021. All rights reserved.