feat: honor DOCKER_HOST for Docker daemon resolution (#4)

Resolve the Docker endpoint from DOCKER_HOST (with the legacy DOCKER_SOCK
override and an OS default fallback) so Podman, rootless setups, and remote
Docker contexts work without assuming /var/run/docker.sock.

start/az start/gcp start bind-mount the resolved unix socket or pass a remote
tcp:// daemon through via DOCKER_HOST; doctor's docker.socket check reports the
resolved endpoint. Adds DockerHostResolveTest and README documentation.

Closes #3
This commit is contained in:
Hector Ventura authored and GitHub committed 2026-06-10 17:19:44 -05:00
1 parent 67468966ce
commit 6862c0dd81
8 files changed
+204 -11

No files matched your search

@@ -76,7 +76,7 @@ public class GcpStartCommand implements Callable<Integer> {
List<String> args = new ArrayList<>();
args.addAll(List.of("-d", "--name", global.container));
args.addAll(List.of("-p", port + ":4588"));
args.addAll(List.of("-v", "/var/run/docker.sock:/var/run/docker.sock"));
args.addAll(DockerClient.dockerSocketRunArgs());
if (persistDir != null) {
args.addAll(List.of("-v", persistDir + ":/app/data"));
}