class DocMachine::Container::PodmanEngine

Defined in:

container/podman_engine.cr

Instance Method Summary

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 find_container_id(name : String) : String #

Finds the container ID based on its name


def image_exists?(image_tag : String) : Bool #

Returns true when the Podman image already exists locally.


def kill_container(container_name : String) : Nil #

Kills a running Podman container by name


def load_image(cache_path : String) : Nil #

Loads the Podman image from a local cache


def pull_image(image_tag : String) : Nil #

Pulls the specified Podman image


def remove_container(container_name : String) : Nil #

Removes a Podman container by name


def run_container(image_tag : String, action : String, docker_name : String, docker_opts : Array(String), enable_tty : Bool) : Process #

Runs a Podman container with the given options


def save_image(image_tag : String, cache_path : String) : Nil #

Saves the Podman image to a local cache