Package org.mandas.docker.client
Class DockerClient.RemoveContainerParam
java.lang.Object
org.mandas.docker.client.DockerClient.Param
org.mandas.docker.client.DockerClient.RemoveContainerParam
- Enclosing interface:
- DockerClient
Parameters for
DockerClient.removeContainer(String)
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreate a custom parameter.Kill then remove the container.forceKill
(boolean force) Kill then remove the container.Remove the volumes associated to the container.removeVolumes
(boolean remove) Remove the volumes associated to the container.Methods inherited from class org.mandas.docker.client.DockerClient.Param
equals, hashCode, name, value
-
Constructor Details
-
RemoveContainerParam
-
-
Method Details
-
create
Create a custom parameter.- Parameters:
name
- custom namevalue
- custom value- Returns:
- BuildParam
-
removeVolumes
Remove the volumes associated to the container. If not specified, defaults to false.- Returns:
- RemoveContainerParam
-
removeVolumes
Remove the volumes associated to the container. If not specified, defaults to false.- Parameters:
remove
- Whether to remove volumes- Returns:
- RemoveContainerParam
-
forceKill
Kill then remove the container. If not specified, defaults to false.- Returns:
- RemoveContainerParam
-
forceKill
Kill then remove the container. If not specified, defaults to false.- Parameters:
force
- Whether to force kill before removing.- Returns:
- RemoveContainerParam
-