Class Remove<R extends Remove>
- java.lang.Object
-
- com.oracle.bedrock.runtime.docker.commands.AbstractDockerCommand<C>
-
- com.oracle.bedrock.runtime.docker.commands.CommandWithArgumentList<R>
-
- com.oracle.bedrock.runtime.docker.commands.Remove<R>
-
- All Implemented Interfaces:
com.oracle.bedrock.runtime.MetaClass<com.oracle.bedrock.runtime.Application>
- Direct Known Subclasses:
Remove.RemoveContainer,Remove.RemoveImage,Remove.RemoveLink
public abstract class Remove<R extends Remove> extends CommandWithArgumentList<R>
A representation of the Docker rm and rmi commands to remove containers, container links and images.Instances of
Removeare immutable, methods that add options and configuration to thisRemovecommand return a new instance of aRemovecommand with the modifications applied.Copyright (c) 2016. All Rights Reserved. Oracle Corporation.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.- Author:
- Jonathan Knight
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRemove.RemoveContainerA representation of a Docker command to remove one or more containers (equates to the Docker rm command).static classRemove.RemoveImageA representation of a Docker command to remove an image.static classRemove.RemoveLinkA representation of a Docker command to remove a link between two containers (equates to the Docker rm --link containerA/contaunerB command).
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Remove.RemoveContainercontainers(Object... names)Create aRemove.RemoveContainercommand to remove specific containers.static Remove.RemoveContainercontainers(List<?> names)Create aRemove.RemoveContainercommand to remove specific containers.static Remove.RemoveImageimages(Object... tags)Create aRemove.RemoveImagecommand to remove specific images.static Remove.RemoveImageimages(List<?> tags)Create aRemove.RemoveImagecommand to remove specific images.static Removelink(String first, String second)Create aRemovecommand to remove a link between two containers.-
Methods inherited from class com.oracle.bedrock.runtime.docker.commands.CommandWithArgumentList
onLaunch, withCommandArguments, withCommandArguments, withoutCommandArguments, withoutCommandArguments
-
Methods inherited from class com.oracle.bedrock.runtime.docker.commands.AbstractDockerCommand
getCommandArguments, getImplementationClass, getTimeout, onLaunched, onLaunching, timeoutAfter, timeoutAfter
-
-
-
-
Method Detail
-
containers
public static Remove.RemoveContainer containers(Object... names)
Create aRemove.RemoveContainercommand to remove specific containers.- Parameters:
names- values that will resolve to a set of tags for containers to be removed- Returns:
- a
Remove.RemoveContainercommand to remove specific containers
-
containers
public static Remove.RemoveContainer containers(List<?> names)
Create aRemove.RemoveContainercommand to remove specific containers.- Parameters:
names- aListof values that will resolve to a set of tags for containers to be removed- Returns:
- a
Remove.RemoveContainercommand to remove specific containers
-
link
public static Remove link(String first, String second)
Create aRemovecommand to remove a link between two containers.- Parameters:
first- the name of the first containersecond- the name of the second container- Returns:
- a
Removecommand to remove a link between two containers
-
images
public static Remove.RemoveImage images(Object... tags)
Create aRemove.RemoveImagecommand to remove specific images.- Parameters:
tags- values that will resolve to a set of tags for images to be removed- Returns:
- a
Remove.RemoveImagecommand to remove specific images
-
images
public static Remove.RemoveImage images(List<?> tags)
Create aRemove.RemoveImagecommand to remove specific images.- Parameters:
tags- aListof values that will resolve to a set of tags for images to be removed- Returns:
- a
Remove.RemoveImagecommand to remove specific images
-
-