Expand description
Docker CLI invocations behind a stubbable process-execution seam.
DockerCli is the single place the platform shells out to docker. The
deploy-oriented operations (build, login, push) carry their own error
mapping; the raw DockerCli::output / DockerCli::status primitives
exist for callers that interpret exit codes and captured output themselves
(container inspection, compose lifecycle, docker exec psql). All process
execution flows through CommandRunner, so tests can substitute a stub
instead of spawning real processes.
build_image first proves the daemon is reachable through the docker
binary that PATH resolves. A wrapper shim ahead of the real binary (a
credsStore helper that is not installed, a desktop-app shim on a headless
box) fails docker build with a message that names neither, so the
preflight failure reports the resolved binary and the configured
credential store alongside the daemon’s own error.
Copyright (c) systemprompt.io — Business Source License 1.1. See https://systemprompt.io for licensing details.