Class Images
- java.lang.Object
-
- com.oracle.bedrock.runtime.docker.commands.AbstractDockerCommand<C>
-
- com.oracle.bedrock.runtime.docker.commands.CommandWithArgumentList<Images>
-
- com.oracle.bedrock.runtime.docker.commands.Images
-
- All Implemented Interfaces:
com.oracle.bedrock.runtime.MetaClass<com.oracle.bedrock.runtime.Application>
public class Images extends CommandWithArgumentList<Images>
A representation of the Docker images command.Instances of
Imagesare immutable, methods that add options and configuration to thisImagescommand return a new instance of aImagescommand 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
-
-
Field Summary
Fields Modifier and Type Field Description static StringFILTER_DANGLINGThe filter to apply to list untagged (dangling) images.static StringFORMAT_CREATED_ATThe format string to use to show the time that the image was created.static StringFORMAT_CREATED_SINCEThe format string to use to show the elapsed time since the image was created.static StringFORMAT_DIGESTThe format string to use to show the image digest.static StringFORMAT_IDThe format string to use to show the image ID.static StringFORMAT_REPOSITORYThe format string to use to show the image repository.static StringFORMAT_SIZEThe format string to use to show the image size.static StringFORMAT_TAGThe format string to use to show the image tag.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Imagesall()Show all images (default hides intermediate images) equates to the -a or --all argument.Imagesdigests()Show image digests, equates to the --digests argument.Imagesfilter(Object... filters)Filter the image list (equates to the --filter argument).Imagesformat(Object... formats)Format the output (equates to the --format argument).static ImagesforRepo(String repoTag)Create aImagescommand to view images for a specific [REPOSITORY[:TAG]] combination.static Imageslist()Create aImagescommand to view all images.ImagesnoTruncate()Do not truncate output, equates to the --no-trunc argument.Imagesquiet()Only show numeric IDs, equates to the --quiet argument.protected ImageswithCommandArguments(List<com.oracle.bedrock.runtime.options.Argument> endArgs, com.oracle.bedrock.runtime.options.Argument... args)Obtain a copy of thisCommandWithArgumentListwith the addition of the specified command argumentsArguments.protected ImageswithoutCommandArguments(List<com.oracle.bedrock.runtime.options.Argument> endArgs, com.oracle.bedrock.runtime.options.Argument... args)Obtain a copy of thisCommandWithArgumentListwithout the the specified command argumentsArguments.-
Methods inherited from class com.oracle.bedrock.runtime.docker.commands.CommandWithArgumentList
onLaunch, withCommandArguments, withoutCommandArguments
-
Methods inherited from class com.oracle.bedrock.runtime.docker.commands.AbstractDockerCommand
getCommandArguments, getImplementationClass, getTimeout, onLaunched, onLaunching, timeoutAfter, timeoutAfter
-
-
-
-
Field Detail
-
FILTER_DANGLING
public static final String FILTER_DANGLING
The filter to apply to list untagged (dangling) images.- See Also:
- Constant Field Values
-
FORMAT_ID
public static final String FORMAT_ID
The format string to use to show the image ID.- See Also:
- Constant Field Values
-
FORMAT_REPOSITORY
public static final String FORMAT_REPOSITORY
The format string to use to show the image repository.- See Also:
- Constant Field Values
-
FORMAT_TAG
public static final String FORMAT_TAG
The format string to use to show the image tag.- See Also:
- Constant Field Values
-
FORMAT_DIGEST
public static final String FORMAT_DIGEST
The format string to use to show the image digest.- See Also:
- Constant Field Values
-
FORMAT_CREATED_SINCE
public static final String FORMAT_CREATED_SINCE
The format string to use to show the elapsed time since the image was created.- See Also:
- Constant Field Values
-
FORMAT_CREATED_AT
public static final String FORMAT_CREATED_AT
The format string to use to show the time that the image was created.- See Also:
- Constant Field Values
-
FORMAT_SIZE
public static final String FORMAT_SIZE
The format string to use to show the image size.- See Also:
- Constant Field Values
-
-
Method Detail
-
all
public Images all()
Show all images (default hides intermediate images) equates to the -a or --all argument.- Returns:
- a new
Imagesinstance that is the same as this instance with the --all option applied
-
digests
public Images digests()
Show image digests, equates to the --digests argument.- Returns:
- a new
Imagesinstance that is the same as this instance with the --digests option applied
-
filter
public Images filter(Object... filters)
Filter the image list (equates to the --filter argument).- Parameters:
filters- values that resolve to one or more valid filter arguments- Returns:
- a new
Imagesinstance that is the same as this instance with the --filter option applied
-
format
public Images format(Object... formats)
Format the output (equates to the --format argument).- Parameters:
formats- values that resolve to one or more valid format arguments- Returns:
- a new
Imagesinstance that is the same as this instance with the --format option applied
-
noTruncate
public Images noTruncate()
Do not truncate output, equates to the --no-trunc argument.- Returns:
- a new
Imagesinstance that is the same as this instance with the --no-trunc option applied
-
quiet
public Images quiet()
Only show numeric IDs, equates to the --quiet argument.- Returns:
- a new
Imagesinstance that is the same as this instance with the --quiet option applied
-
list
public static Images list()
Create aImagescommand to view all images.- Returns:
- a
Imagescommand to view all images
-
forRepo
public static Images forRepo(String repoTag)
Create aImagescommand to view images for a specific [REPOSITORY[:TAG]] combination.- Parameters:
repoTag- the [REPOSITORY[:TAG]] combination to list images for- Returns:
- a
Imagescommand to view images for a specific [REPOSITORY[:TAG]] combination
-
withCommandArguments
protected Images withCommandArguments(List<com.oracle.bedrock.runtime.options.Argument> endArgs, com.oracle.bedrock.runtime.options.Argument... args)
Description copied from class:CommandWithArgumentListObtain a copy of thisCommandWithArgumentListwith the addition of the specified command argumentsArguments.- Specified by:
withCommandArgumentsin classCommandWithArgumentList<Images>- Parameters:
endArgs- theListofArgumentsthat appear at the end of the command lineargs- the new command to add- Returns:
- a copy of this
CommandWithArgumentListwith the addition of the specified command argumentsArguments
-
withoutCommandArguments
protected Images withoutCommandArguments(List<com.oracle.bedrock.runtime.options.Argument> endArgs, com.oracle.bedrock.runtime.options.Argument... args)
Description copied from class:CommandWithArgumentListObtain a copy of thisCommandWithArgumentListwithout the the specified command argumentsArguments.- Specified by:
withoutCommandArgumentsin classCommandWithArgumentList<Images>- Parameters:
endArgs- theListofArgumentsthat appear at the end of the command lineargs- the new command to add- Returns:
- a copy of this
CommandWithArgumentListwithout the specified command argumentsArguments
-
-