class

Docker::Images

Inherits Docker::ApiClientWrapper / Reference / Object

Create and manage images on the attached docker instance.

Instance methods

build(path : String, **props, &) : Image

Build an image and return it.

Similar to the docker build command.

Source
get(id_or_name : String)

Get a image by name or ID.

Source
list(all : Bool | Nil = nil, name : String | Nil = nil, filters : Hash | Nil = nil) : Array(Image)

List images. Similar to the docker ps command.

Available filters, filter value may be a single value or an array:

  • dangling : Bool Only dangling images
  • label : String Only images with label(s)
Source