Class DockerCreateNetwork

java.lang.Object
org.gradle.api.internal.AbstractTask
org.gradle.api.DefaultTask
com.bmuschko.gradle.docker.tasks.AbstractDockerRemoteApiTask
com.bmuschko.gradle.docker.tasks.network.DockerCreateNetwork
All Implemented Interfaces:
Comparable<Task>, org.gradle.api.internal.DynamicObjectAware, org.gradle.api.internal.TaskInternal, Named, ExtensionAware, Task, Configurable<Task>

public class DockerCreateNetwork extends AbstractDockerRemoteApiTask
  • Constructor Details

    • DockerCreateNetwork

      @Inject public DockerCreateNetwork(ObjectFactory objects)
  • Method Details

    • getNetworkName

      @Input public final Property<String> getNetworkName()
      The name of the network to be created.
      Since:
      6.4.0
    • getIpam

      public final DockerCreateNetwork.Ipam getIpam()
      The IP address management (IPAM) for managing IP address space on a network.
      Since:
      8.0.0
    • getNetworkIdFile

      @OutputFile public final RegularFileProperty getNetworkIdFile()
      The file that contains the network ID created by this task. Defaults to "$buildDir/.docker/$taskpath-networkId.txt". If path contains ':' it will be replaced by '_'.
    • getNetworkId

      @Internal public final Property<String> getNetworkId()
      The ID of the network created. The value of this property requires the task action to be executed.
    • runRemoteCommand

      public void runRemoteCommand()
      Specified by:
      runRemoteCommand in class AbstractDockerRemoteApiTask