Class DockerClient.ListContainersParam

    • Constructor Detail

      • ListContainersParam

        public ListContainersParam​(String name,
                                   String value)
    • Method Detail

      • filter

        public static DockerClient.ListContainersParam filter​(String key,
                                                              String value)
        Create a "filters" query param from a key/value pair.
        Parameters:
        key - Type of filter
        value - Value of filter
        Returns:
        ListContainersParam
      • allContainers

        public static DockerClient.ListContainersParam allContainers()
        Show all containers. Only running containers are shown by default
        Returns:
        ListContainersParam
      • allContainers

        public static DockerClient.ListContainersParam allContainers​(boolean all)
        Show all containers. Only running containers are shown by default
        Parameters:
        all - Whether to show all containers
        Returns:
        ListContainersParam
      • limitContainers

        public static DockerClient.ListContainersParam limitContainers​(Integer limit)
        Show limit last created containers, include non-running ones.
        Parameters:
        limit - Limit for number of containers to list
        Returns:
        ListContainersParam
      • containersCreatedSince

        public static DockerClient.ListContainersParam containersCreatedSince​(String id)
        Show only containers created since id, include non-running ones.
        Parameters:
        id - container ID
        Returns:
        ListContainersParam
      • containersCreatedBefore

        public static DockerClient.ListContainersParam containersCreatedBefore​(String id)
        Show only containers created before id, include non-running ones.
        Parameters:
        id - container ID
        Returns:
        ListContainersParam
      • withContainerSizes

        public static DockerClient.ListContainersParam withContainerSizes​(Boolean size)
        Show the containers sizes.
        Parameters:
        size - Whether to show container sizes
        Returns:
        ListContainersParam
      • withExitStatus

        public static DockerClient.ListContainersParam withExitStatus​(int exitStatus)
        Show exited containers with given exit status.
        Parameters:
        exitStatus - Integer exit status
        Returns:
        ListContainersParam
      • withLabel

        public static DockerClient.ListContainersParam withLabel​(String label,
                                                                 String value)
        Show containers with a label value.
        Parameters:
        label - The label to filter on
        value - The value of the label
        Returns:
        ListContainersParam
      • withLabel

        public static DockerClient.ListContainersParam withLabel​(String label)
        Show containers with a label.
        Parameters:
        label - The label to filter on
        Returns:
        ListContainersParam