Skip to main content

Module docker

Module docker 

Source
Expand description

Docker helpers for status listing and compose rebuild.

reference: horto-os/scripts/docker_rebuild.sh

Structs§

ContainerInfo
One running container row from docker ps.

Functions§

compose_up
Run docker compose up -d in dir.
docker_available
Whether docker is on PATH.
docker_rebuild
Rebuild and recreate one compose project in dir (build --no-cache then up -d).
list_containers
List running containers, or an empty list when docker is missing / fails.
parse_docker_ps_lines
Parse docker ps --format tab-separated lines into ContainerInfo rows.
resolve_stack
Dockge stack id: compose project label, else primary container name.