Interface Manager

  • All Known Implementing Classes:
    DockerManager

    public interface Manager
    The interface Manager.
    • Method Detail

      • createContainer

        Container createContainer​(String name,
                                  String tag)
        Create container container.
        Parameters:
        name - the name
        tag - the tag
        Returns:
        the container
      • findIpAddress

        String findIpAddress​(Container container,
                             Network network)
        Find ip address string.
        Parameters:
        container - the container
        network - the network
        Returns:
        the string
      • createNetwork

        Network createNetwork​(String name,
                              String subnet)
        Create network network.
        Parameters:
        name - the name
        subnet - the subnet
        Returns:
        the network
      • listContainers

        List<Container> listContainers()
        List containers list.
        Returns:
        the list
      • listNetworks

        List<Network> listNetworks()
        List networks list.
        Returns:
        the list
      • connectContainerToNetwork

        void connectContainerToNetwork​(Container container,
                                       Network network)
        Connect container to network.
        Parameters:
        container - the container
        network - the network
      • killContainer

        void killContainer​(Container container)
        Method stops container.
        Parameters:
        container -
      • disconnectContainer

        void disconnectContainer​(Container container,
                                 Network network)
        Disconnects container from network.
        Parameters:
        container -
        network -
      • destroyContainer

        void destroyContainer​(Container container)
        Destroy container.
        Parameters:
        container - the container
      • destroyNetwork

        void destroyNetwork​(Network network)
        Destroy network.
        Parameters:
        network - the network
      • runCommand

        void runCommand​(Container container,
                        String command)
        Run command.
        Parameters:
        container - the container
        command - the command
      • startContainer

        void startContainer​(Container container)
        Start container.
        Parameters:
        container - the container
      • buildImage

        void buildImage​(File dockerfile,
                        Set<String> tag)
        Build image.
        Parameters:
        dockerfile - the dockerfile
        tag - the tag
      • deleteImage

        void deleteImage​(String tag)
        Delete image.
        Parameters:
        tag - the tag