build / build (push) Successful in 38m26s
- das-shell 0.1.0: the Das two-line bash prompt by default (replaces the PS1 of Void's skel .bashrc once), dprompt (Textual prompt builder with presets and live preview) and dbanner (SSH login banner editor: canvas tools, fields with values, widgets, das-banner service for cached ones, Das OS logo and tryzub pictures). Python tests in make test. - das-server 0.3.0 depends on das-shell; the server installer mentions dprompt and dbanner; the desktop image includes it. - run-qemu.sh forwards the guest's SSH to localhost:2222. - Hardware fixes: Ventoy menu icon, boot menu titles "Das OS <version>". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
16 lines
680 B
Bash
Executable File
16 lines
680 B
Bash
Executable File
#!/bin/bash
|
|
# dbanner-title-uk: Контейнери Docker
|
|
# dbanner-title-en: Docker containers
|
|
# dbanner-mode: live
|
|
# Running and stopped containers; nothing when Docker is not there or not reachable.
|
|
. "${0%/*}/lib.sh"
|
|
command -v docker >/dev/null || exit 0
|
|
mapfile -t states < <(timeout 1 docker ps -a --format '{{.State}}' 2>/dev/null) || exit 0
|
|
((${#states[@]})) || exit 0
|
|
running=0
|
|
for s in "${states[@]}"; do [[ $s == running ]] && ((running++)); done
|
|
stopped=$((${#states[@]} - running))
|
|
color=$Green
|
|
((stopped)) && color=$Yellow
|
|
echo "$Bold$(say "Docker:" "Docker:")$Off $color$running$Off $(say "працює" "running"), $stopped $(say "зупинено" "stopped")"
|