Class DockerClient.RemoveContainerParam

    • Constructor Detail

      • RemoveContainerParam

        public RemoveContainerParam​(java.lang.String name,
                                    java.lang.String value)
    • Method Detail

      • create

        public static DockerClient.RemoveContainerParam create​(java.lang.String name,
                                                               java.lang.String value)
        Create a custom parameter.
        Parameters:
        name - custom name
        value - custom value
        Returns:
        BuildParam
      • removeVolumes

        public static DockerClient.RemoveContainerParam removeVolumes()
        Remove the volumes associated to the container. If not specified, defaults to false.
        Returns:
        RemoveContainerParam
      • removeVolumes

        public static DockerClient.RemoveContainerParam removeVolumes​(boolean remove)
        Remove the volumes associated to the container. If not specified, defaults to false.
        Parameters:
        remove - Whether to remove volumes
        Returns:
        RemoveContainerParam
      • forceKill

        public static DockerClient.RemoveContainerParam forceKill()
        Kill then remove the container. If not specified, defaults to false.
        Returns:
        RemoveContainerParam
      • forceKill

        public static DockerClient.RemoveContainerParam forceKill​(boolean force)
        Kill then remove the container. If not specified, defaults to false.
        Parameters:
        force - Whether to force kill before removing.
        Returns:
        RemoveContainerParam