Class 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 Images are immutable, methods that add options and configuration to this Images command return a new instance of a Images command 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 Detail

      • FILTER_DANGLING

        public static final String FILTER_DANGLING
        The filter to apply to list untagged (dangling) images.
        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_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
    • Method Detail

      • all

        public Images all()
        Show all images (default hides intermediate images) equates to the -a or --all argument.
        Returns:
        a new Images instance 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 Images instance 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 Images instance 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 Images instance 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 Images instance 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 Images instance that is the same as this instance with the --quiet option applied
      • list

        public static Images list()
        Create a Images command to view all images.
        Returns:
        a Images command to view all images
      • forRepo

        public static Images forRepo​(String repoTag)
        Create a Images command to view images for a specific [REPOSITORY[:TAG]] combination.
        Parameters:
        repoTag - the [REPOSITORY[:TAG]] combination to list images for
        Returns:
        a Images command to view images for a specific [REPOSITORY[:TAG]] combination