class Docker::Images

Overview

Create and manage images on the attached docker instance.

Included Modules

Defined in:

docker/images.cr

Instance Method Summary

Constructor methods inherited from module Docker::ApiClientWrapper

new(client) new

Instance Method Detail

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

Build an image and return it.

Similar to the docker build command.


[View source]
def get(id_or_name : String) #

Get a image by name or ID.


[View source]
def 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)

[View source]