Class Network.Create

  • All Implemented Interfaces:
    com.oracle.bedrock.runtime.MetaClass<com.oracle.bedrock.runtime.Application>
    Enclosing class:
    Network<C extends CommandWithArgumentList>

    public static class Network.Create
    extends Network<Network.Create>
    A representation of the Docker Network Create command.
    • Method Detail

      • auxAddress

        public Network.Create auxAddress​(Object... address)
        Set the auxiliary ipv4 or ipv6 addresses used by network driver (equates to the --aux-address argument).
        Parameters:
        address - values that resolve to one or more valid auxiliary ipv4 or ipv6 addresses
        Returns:
        a new Network.Create instance that is the same as this instance with the --aux-address option applied
      • gateway

        public Network.Create gateway​(Object... address)
        Set the ipv4 or ipv6 Gateway for the master subnet (equates to the --gateway argument).
        Parameters:
        address - values that resolve to one or more valid IP ranges, for example 192.168.0.100
        Returns:
        a new Network.Create instance that is the same as this instance with the --gateway option applied
      • internal

        public Network.Create internal()
        Restrict external access to the network (equates to the --internal argument).
        Returns:
        a new Network.Create instance that is the same as this instance with the --internal option applied
      • ipRange

        public Network.Create ipRange​(Object... range)
        Allocate container ip from a sub-range (equates to the --ip-range argument).
        Parameters:
        range - values that resolve to one or more valid IP ranges, for example 172.28.5.0/24
        Returns:
        a new Network.Create instance that is the same as this instance with the --ip-range option applied
      • ipamDriver

        public Network.Create ipamDriver​(String driver)
        Set the IP Address Management Driver (equates to the --ipam-driver argument).
        Parameters:
        driver - the name of the IP Address Management Driver
        Returns:
        a new Network.Create instance that is the same as this instance with the --ipam-driver option applied
      • ipamOpts

        public Network.Create ipamOpts​(Object... options)
        Set custom IPAM driver specific options (equates to the --ipam-opt argument).
        Parameters:
        options - values that resolve to one or more valid IPAM driver options
        Returns:
        a new Network.Create instance that is the same as this instance with the --ipam-opt option applied
      • ipv6

        public Network.Create ipv6()
        Set metadata on a network (equates to the --ipv6 argument).
        Returns:
        a new Network.Create instance that is the same as this instance with the --ipv6 option applied
      • labels

        public Network.Create labels​(Object... labels)
        Set metadata on a network (equates to the --label argument).
        Parameters:
        labels - values that resolve to one or more valid meta-data values
        Returns:
        a new Network.Create instance that is the same as this instance with the --label option applied
      • driverOpts

        public Network.Create driverOpts​(Object... options)
        Set custom driver specific options (equates to the --opt argument).
        Parameters:
        options - values that resolve to one or more valid custom driver options
        Returns:
        a new Network.Create instance that is the same as this instance with the --opt option applied
      • subnet

        public Network.Create subnet​(Object... cidr)
        Set the subnet in CIDR format that represents a network segment (equates to the --subnet argument).
        Parameters:
        cidr - values that resolve to one or more valid CIDR arguments, for example 172.28.0.0/16
        Returns:
        a new Network.Create instance that is the same as this instance with the --subnet option applied