class Docker::Image

Overview

Interact with a single image that exists on a docker client.

Included Modules

Defined in:

docker/image.cr

Constructors

Instance Method Summary

Constructor methods inherited from module Docker::ApiClientWrapper

new(client) new

Constructor Detail

def self.new(client : Docker::Api::ApiClient, id : String) #

Create a new image interaction object for the passed image id.


[View source]
def self.new(client : Docker::Api::ApiClient, attrs : Docker::Api::Models::Image) #

Create a new image interaction object based on a previous queried image model.


[View source]

Instance Method Detail

Locally cached image attributes.

This is populated at the time of object creation. Use '#reload!' to update.


[View source]
def id #

The ID of the image object.


[View source]
def labels #

The labels of a image.


[View source]
def reload! #

Load this object from the server again and update attrs with the new data.


[View source]
def short_id #

The ID of the image truncated to 10 characters, plus the "sha256:" prefix.


[View source]
def tags #

The image's tags.


[View source]