public static class DockerClient.RemoveContainerParam extends DockerClient.Param
DockerClient.removeContainer(String)
.Constructor and Description |
---|
RemoveContainerParam(String name,
String value) |
Modifier and Type | Method and Description |
---|---|
static DockerClient.RemoveContainerParam |
create(String name,
String value)
Create a custom parameter.
|
static DockerClient.RemoveContainerParam |
forceKill()
Kill then remove the container.
|
static DockerClient.RemoveContainerParam |
forceKill(boolean force)
Kill then remove the container.
|
static DockerClient.RemoveContainerParam |
removeVolumes()
Remove the volumes associated to the container.
|
static DockerClient.RemoveContainerParam |
removeVolumes(boolean remove)
Remove the volumes associated to the container.
|
equals, hashCode, name, value
public static DockerClient.RemoveContainerParam create(String name, String value)
name
- custom namevalue
- custom valuepublic static DockerClient.RemoveContainerParam removeVolumes()
public static DockerClient.RemoveContainerParam removeVolumes(boolean remove)
remove
- Whether to remove volumespublic static DockerClient.RemoveContainerParam forceKill()
public static DockerClient.RemoveContainerParam forceKill(boolean force)
force
- Whether to force kill before removing.Copyright © 2018. All rights reserved.