Skip to main content

Module docker

Module docker 

Source
Expand description

Docker bridge validation and command construction (no shell strings).

Functions§

bridge_argv
The argv for the remote docker exec bridge — a structured argument vector, never a shell string. Executed over an SSH exec channel. Per-tool forms match the legacy bridge commands: socat - TCP:h:p and nc|ncat h p.
inspect_argv
Argv for docker inspect with a structured output format.
tool_probe_argv
Argv probing the bridge tool’s presence inside the container. which is executed directly (an exec argv, no sh -c string).
validate_container_name
Container names: alnum start, then alnum/_/./-, ≤128 total.
validate_remote_host
Remote hosts reachable through the bridge: alnum/./-, ≤253.
validate_remote_port