Network

class Network : KotlinCustomResource

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");
}
}

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

Properties

Link copied to clipboard
val attachable: Output<Boolean>?

Enable manual container attachment to the network.

Link copied to clipboard
val checkDuplicate: Output<Boolean>?

Requests daemon to check for networks with same name.

Link copied to clipboard
val driver: Output<String>

The driver of the Docker network. Possible values are bridge, host, overlay, macvlan. See network docs for more details.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val ingress: Output<Boolean>?

Create swarm routing-mesh network. Defaults to false.

Link copied to clipboard
val internal: Output<Boolean>

Whether the network is internal.

Link copied to clipboard

The IPAM configuration options

Link copied to clipboard
val ipamDriver: Output<String>?

Driver used by the custom IP scheme of the network. Defaults to default

Link copied to clipboard
val ipv6: Output<Boolean>?

Enable IPv6 networking. Defaults to false.

Link copied to clipboard
val labels: Output<List<NetworkLabel>>?

User-defined key/value metadata

Link copied to clipboard
val name: Output<String>

The name of the Docker network.

Link copied to clipboard
val options: Output<Map<String, Any>>

Only available with bridge networks. See bridge options docs for more details.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val scope: Output<String>

Scope of the network. One of swarm, global, or local.

Link copied to clipboard
val urn: Output<String>