module Docker::Porcelain::Image::ClassMethods

Public Instance Methods

[](id) click to toggle source

Get image specified by id @param id [String] identifier of the image to get @return [Docker::Image, nil] image or nil if not found

# File lib/docker/porcelain/image.rb, line 8
def [] id
  Docker::Image.get id
rescue Docker::Error::NotFoundError
  nil
end
repository(repo) click to toggle source

Get all images from the specified repository (eg. as in ‘repository:tag’) @param repo [String] repository to look for @return [Array<Docker::Image>] images

# File lib/docker/porcelain/image.rb, line 17
def repository repo
  Docker::Image.all 'filter' => repo
end