Network Args
data class NetworkArgs(val attachable: Output<Boolean>? = null, val checkDuplicate: Output<Boolean>? = null, val driver: Output<String>? = null, val ingress: Output<Boolean>? = null, val internal: Output<Boolean>? = null, val ipamConfigs: Output<List<NetworkIpamConfigArgs>>? = null, val ipamDriver: Output<String>? = null, val ipv6: Output<Boolean>? = null, val labels: Output<List<NetworkLabelArgs>>? = null, val name: Output<String>? = null, val options: Output<Map<String, Any>>? = null) : ConvertibleToJava<NetworkArgs>
docker.Network
provides a docker network resource.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.docker.Network;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var privateNetwork = new Network("privateNetwork");
}
}
Content copied to clipboard
Import
Example Assuming you created a network
as follows #!/bin/bash docker network create foo prints the long ID 87b57a9b91ecab2db2a6dbf38df74c67d7c7108cbe479d6576574ec2cd8c2d73 you provide the definition for the resource as follows terraform resource "docker_network" "foo" {
name = "foo" } then the import command is as follows #!/bin/bash
$ pulumi import docker:index/network:Network foo 87b57a9b91ecab2db2a6dbf38df74c67d7c7108cbe479d6576574ec2cd8c2d73
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(attachable: Output<Boolean>? = null, checkDuplicate: Output<Boolean>? = null, driver: Output<String>? = null, ingress: Output<Boolean>? = null, internal: Output<Boolean>? = null, ipamConfigs: Output<List<NetworkIpamConfigArgs>>? = null, ipamDriver: Output<String>? = null, ipv6: Output<Boolean>? = null, labels: Output<List<NetworkLabelArgs>>? = null, name: Output<String>? = null, options: Output<Map<String, Any>>? = null)
Properties
Link copied to clipboard
Enable manual container attachment to the network.
Link copied to clipboard
Requests daemon to check for networks with same name.
Link copied to clipboard
The driver of the Docker network. Possible values are bridge
, host
, overlay
, macvlan
. See network docs for more details.
Link copied to clipboard
The IPAM configuration options
Link copied to clipboard
Driver used by the custom IP scheme of the network. Defaults to default
Link copied to clipboard
User-defined key/value metadata