Class Network.Connect

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

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

      • alias

        public Network.Connect alias​(Object... alias)
        Add network-scoped aliases for the container (equates to the --alias argument).
        Parameters:
        alias - values that resolve to one or more valid aliases
        Returns:
        a new Network.Connect instance that is the same as this instance with the --alias option applied
      • ip

        public Network.Connect ip​(Object address)
        Set the IPv4 Address (equates to the --ip argument).
        Parameters:
        address - a value that resolves to a valid IPv4 addresses
        Returns:
        a new Network.Create instance that is the same as this instance with the --ip option applied
      • ip6

        public Network.Connect ip6​(Object address)
        Set the IPv6 Address (equates to the --ip6 argument).
        Parameters:
        address - a value that resolves to a valid IPv6 addresses
        Returns:
        a new Network.Create instance that is the same as this instance with the --ip6 option applied
      • link

        public Network.Connect link​(Object... containers)
        Add a link to another container (equates to the --link argument).
        Parameters:
        containers - values that resolve to one or more valid container names
        Returns:
        a new Network.Create instance that is the same as this instance with the --link option applied