class Docker::Image
- Docker::Image
- Reference
- Object
Overview
Interact with a single image that exists on a docker client.
Included Modules
Defined in:
docker/image.crConstructors
-
.new(client : Docker::Api::ApiClient, id : String)
Create a new image interaction object for the passed image id.
-
.new(client : Docker::Api::ApiClient, attrs : Docker::Api::Models::Image)
Create a new image interaction object based on a previous queried image model.
Instance Method Summary
-
#attrs : Docker::Api::Models::Image
Locally cached image attributes.
-
#id
The ID of the image object.
-
#labels
The labels of a image.
-
#reload!
Load this object from the server again and update attrs with the new data.
-
#short_id
The ID of the image truncated to 10 characters, plus the "sha256:" prefix.
-
#tags
The image's tags.
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.
Create a new image interaction object based on a previous queried image model.
Instance Method Detail
def attrs : Docker::Api::Models::Image
#
Locally cached image attributes.
This is populated at the time of object creation. Use '#reload!' to update.