Install, configure, manage, validate, and inspect a Docker host and its containers
Source: target-root/usr/local/libexec/solidgroundux/console-modules/70-docker-server.sh
Install, configure, manage, validate, and inspect a Docker host and its containers
Public functions
- Run and track the complete Docker host preparation sequence
- Install the Docker operation.
- Invoke the Docker storage configuration action.
- Start the Docker operation.
- Forward the
serviceaction to the Docker host manager. - Validate the Docker operation.
- Forward the
statusaction to the Docker host manager. - Forward the
listaction to the Docker container manager. - Forward the
createaction to the Docker container manager. - Forward the
startaction to the Docker container manager. - Forward the
stopaction to the Docker container manager. - Forward the
restartaction to the Docker container manager. - Forward the
shellaction to the Docker container manager. - Forward the
removeaction to the Docker container manager. - Forward the
inspectaction to the Docker container manager. - Forward the
logsaction to the Docker container manager. - Forward the
imagesaction to the Docker container manager. - Forward the
pullaction to the Docker container manager. - Validate the Docker module and record its status for the console.
Internal functions
| Function | Purpose | Arguments | Output |
|---|---|---|---|
_sgnd_lib_guard | Ensure the file is sourced as a library and marked as loaded. | — | (globals) |
_docker_run_host | Dispatch a Docker host action to the Docker Server manager. | - $1: Management action to execute. | — |
_docker_run_containers | Dispatch a Docker container action to the container manager. | - $1: Management action to execute. | — |
_docker_step_install | Forward the install action to the Docker host manager. | — | — |
_docker_step_storage | Forward the storage action to the Docker host manager. | — | — |
_docker_step_start | Forward the start action to the Docker host manager. | — | — |
_docker_step_validate | Forward the validate action to the Docker host manager. | — | — |
Description
Registers Docker host and container-management actions with the SolidGround Management Console. Persistent host operations are implemented by manage-docker-server.sh; container lifecycle operations are implemented by manage-docker-containers.sh.
Module validation contract
Return codes: 0 = Passed 1 = Failed 2 = Warning 3 = Skipped / not applicable
Every validator sets SGND_MODULE_VALIDATION_MESSAGE to a concise result summary. Detailed diagnostic output may be written by the validator or delegated action.
