Class DockerClient.RemoveContainerParam

    • Constructor Detail

      • RemoveContainerParam

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

      • 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