class Docr::Endpoints::Images
  
  - Docr::Endpoints::Images
 - Reference
 - Object
 
Defined in:
docr/endpoints/images.crConstructors
Instance Method Summary
- 
        #build(tags : Array(String), context : String = ".", dockerfile : String = "Dockerfile", extra_hosts : String | Nil = nil, quiet : Bool = false, no_cache : Bool = false, cache_from : Array(String) = Array(String).new, pull : Bool = false, rm : Bool = true, forcerm : Bool = false, memory : Int32 | Nil = nil, memswap : Int32 | Nil = nil, cpu_shares : Int32 | Nil = nil, cpu_setcpus : String | Nil = nil, cpu_period : Int32 | Nil = nil, cpu_quota : Int32 | Nil = nil, build_args : Hash(String, String) | Nil = nil, shmsize : Int32 | Nil = nil, squash : Bool | Nil = nil, labels : Hash(String, String) | Nil = nil, network_mode : String | Nil = nil, platform : String = "", target : String = "", outputs : String = "", version : String = "1", &)
        
          
Builds a Docker image using the specified parameters.
 - #client : Docr::Client
 - 
        #create(image : String, tag : String = "latest")
        
          
Creates a new image by pulling it from a registry.
 - 
        #delete(name : String, force = false, no_prune = false) : Array(Docr::Types::ImageDeleteResponseItem)
        
          
Deletes a specific image by its name.
 - 
        #history(name : String) : Array(Docr::Types::HistoryResponseItem)
        
          
Fetches the history of a specific image by its name.
 - 
        #inspect(name : String) : Docr::Types::Image
        
          
Inspects a specific image by its name.
 - 
        #list(all = false, filters = Hash(String, String).new, digests = false)
        
          
Retrieves a list of images.
 - 
        #push(name : String, tag : String, auth : String)
        
          
Pushes an image to a registry.
 - 
        #tag(name : String, repo : String, tag : String)
        
          
Tags an image into a repository.
 
Constructor Detail
Instance Method Detail
Creates 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.
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.
Tags an image into a repository.
- name: The name of the image to tag.
 - repo: The repository name to tag the image into.
 - tag: The tag to apply to the image.
 
Does not return any specific value.