Docr::Endpoints::Images
Constructors
new(client : Docr::Client)
SourceInstance methods
client
SourceCreates a new image by pulling it from a registry.
- image: The name of the image to create.
- tag: (Optional) The tag of the image. Default is "latest".
Does not return any specific value.
delete(name : String, force = false, no_prune = false) : Array(Docr::Types::ImageDeleteResponseItem)
Deletes a specific image by its name.
- name: The name of the image to delete.
- force: (Optional) Force removal of the image. Default is false.
- no_prune: (Optional) Do not delete untagged parents. Default is false.
Returns an array of image delete response items.
Fetches the history of a specific image by its name.
- name: The name of the image to fetch history for.
Returns an array of image history response items.
Inspects a specific image by its name.
- name: The name of the image to inspect.
Returns details about the specified image.
Retrieves a list of images.
- all: (Optional) List all images if true, else only top-level images. Default is false.
- filters: (Optional) Filters to apply to the image list. Default is an empty hash.
- digests: (Optional) Include image digests if true. Default is false.
Returns an array of image summaries.
Pushes an image to a registry.
- name: The name of the image to push.
- tag: The tag of the image to push.
- auth: Authentication credentials for pushing the image.
Does not return any specific value.