abstract class DocMachine::Container::AbstractContainerEngine

Direct Known Subclasses

Defined in:

container/abstract_container_engine.cr

Instance Method Summary

Instance Method Detail

abstract def find_container_id(name : String) : String #

Finds the container ID based on its name


abstract def image_exists?(image_tag : String) : Bool #

Checks whether the specified image already exists locally.


abstract def kill_container(container_name : String) : Nil #

Kills a running container by name


abstract def load_image(cache_path : String) : Nil #

Loads the Docker/Podman image from a local cache


abstract def pull_image(image_tag : String) : Nil #

Pulls the specified Docker/Podman image


abstract def remove_container(container_name : String) : Nil #

Removes a container by name


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