Install, configure, validate, and inspect a Docker host
Source: target-root/usr/local/libexec/solidgroundux/manage-docker-server.sh
Install, configure, validate, and inspect a Docker host
Public functions
Internal functions
| Function | Purpose | Arguments | Output |
|---|---|---|---|
_dryrun_complete | Report the dry-run result without executing the requested host change. | — | — |
_docker_package_installed | Test whether the docker.io package is installed. | — | — |
_docker_command_available | Test whether the Docker command-line client is available. | — | — |
_docker_storage_root | Read the SolidGroundUX storage mount point configured for Docker. | — | — |
_docker_current_data_root | Discover Docker’s current data root or its configured fallback. | — | — |
_docker_has_workloads | Test whether Docker contains any containers or local images. | — | — |
_docker_directory_nonempty | Check whether a root-owned directory contains any entries. | - $1: Filesystem path to inspect. | — |
_docker_write_data_root | Persist the Docker daemon data-root directory setting. | - $1: Docker daemon data directory. | — |
_docker_select_service_action | Prompt for a Docker systemd service operation. | - $1: Name of the shell variable receiving the result. | — |
_docker_ask_selection | Present numbered Docker service choices and write the selected result. | - $2: Name of the output shell variable. | — |
_docker_install | Install the Docker operation. | — | — |
_docker_start | Start the Docker operation. | — | — |
_docker_prepare | Execute the same host preparation steps exposed by the management-console | — | — |
_docker_configure_storage | Configure the Docker daemon data directory and required filesystem settings. | — | — |
_docker_manage_service | Start, stop, restart or enable the Docker daemon through systemd. | — | — |
_docker_status | Inspect status for the Docker operation. | — | — |
_docker_validate | Validate the Docker operation. | — | — |
_run_action | Dispatch the requested management action to its implementation. | - $1: Management action to execute. | — |
Description
Provides first-version Docker host management for SolidGroundUX. The script deliberately avoids migrating an existing Docker data root automatically.
Usage
Run the executable from its shell command (or installed wrapper):
manage-docker-server --action status
manage-docker-server --dryrun --action storage
Script-specific options:
--action NAME,-a: Management action (supported actions:prepare,install,storage,start,service,validate,status).
