abstract class
DocMachine::Container::AbstractContainerEngine
- DocMachine::Container::AbstractContainerEngine
- Reference
- Object
Direct Known Subclasses
Defined in:
container/abstract_container_engine.crInstance Method Summary
-
#find_container_id(name : String) : String
Finds the container ID based on its name
-
#image_exists?(image_tag : String) : Bool
Checks whether the specified image already exists locally.
-
#kill_container(container_name : String) : Nil
Kills a running container by name
-
#load_image(cache_path : String) : Nil
Loads the Docker/Podman image from a local cache
-
#pull_image(image_tag : String) : Nil
Pulls the specified Docker/Podman image
-
#remove_container(container_name : String) : Nil
Removes a container by name
-
#run_container(image_tag : String, action : String, docker_name : String, docker_opts : Array(String), enable_tty : Bool) : Process
Runs a container with the given options
-
#save_image(image_tag : String, cache_path : String) : Nil
Saves the Docker/Podman image to a local cache
Instance Method Detail
abstract
def image_exists?(image_tag : String) : Bool
#
Checks whether the specified image already exists locally.
abstract
def load_image(cache_path : String) : Nil
#
Loads the Docker/Podman image from a local cache
abstract
def run_container(image_tag : String, action : String, docker_name : String, docker_opts : Array(String), enable_tty : Bool) : Process
#
Runs a container with the given options
abstract
def save_image(image_tag : String, cache_path : String) : Nil
#
Saves the Docker/Podman image to a local cache