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