Manage Docker Server

SolidGroundUX DocumentationSolidGroundUX
NL

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
FunctionPurposeArgumentsOutput
_dryrun_completeReport the dry-run result without executing the requested host change.——
_docker_package_installedTest whether the docker.io package is installed.——
_docker_command_availableTest whether the Docker command-line client is available.——
_docker_storage_rootRead the SolidGroundUX storage mount point configured for Docker.——
_docker_current_data_rootDiscover Docker’s current data root or its configured fallback.——
_docker_has_workloadsTest whether Docker contains any containers or local images.——
_docker_directory_nonemptyCheck whether a root-owned directory contains any entries.- $1: Filesystem path to inspect.—
_docker_write_data_rootPersist the Docker daemon data-root directory setting.- $1: Docker daemon data directory.—
_docker_select_service_actionPrompt for a Docker systemd service operation.- $1: Name of the shell variable receiving the result.—
_docker_ask_selectionPresent numbered Docker service choices and write the selected result.- $2: Name of the output shell variable.—
_docker_installInstall the Docker operation.——
_docker_startStart the Docker operation.——
_docker_prepareExecute the same host preparation steps exposed by the management-console——
_docker_configure_storageConfigure the Docker daemon data directory and required filesystem settings.——
_docker_manage_serviceStart, stop, restart or enable the Docker daemon through systemd.——
_docker_statusInspect status for the Docker operation.——
_docker_validateValidate the Docker operation.——
_run_actionDispatch 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).