Class Remove.RemoveImage

  • All Implemented Interfaces:
    com.oracle.bedrock.runtime.MetaClass<com.oracle.bedrock.runtime.Application>
    Enclosing class:
    Remove<R extends Remove>

    public static class Remove.RemoveImage
    extends Remove<Remove.RemoveImage>
    A representation of a Docker command to remove an image.
    • Method Detail

      • force

        public Remove.RemoveImage force()
        Force removal of the image (equates to the --force argument).
        Returns:
        a new Remove.RemoveImage instance that is the same as this instance with the --force option applied
      • force

        public Remove.RemoveImage force​(boolean force)
        Force removal of the image (equates to the --force argument).
        Parameters:
        force - true to add the --force option or false to remove the --force option
        Returns:
        a new Remove.RemoveImage instance that is the same as this instance with the --force option applied
      • noPrune

        public Remove.RemoveImage noPrune()
        Do not delete untagged parents (equates to the --no-prune argument).
        Returns:
        a new Remove.RemoveImage instance that is the same as this instance with the --no-prune option applied
      • noPrune

        public Remove.RemoveImage noPrune​(boolean noPrune)
        Do not delete untagged parents (equates to the --no-prune argument).
        Parameters:
        noPrune - true to add the --no-prune option or false to remove the --no-prune option
        Returns:
        a new Remove.RemoveImage instance that is the same as this instance with the --no-prune option applied