{"record":{"id":"5ba297d2807f0681","repo":"nektos/act","slug":"docker-host-was-not-set-couldn-t-be-found-in-the","errorCode":null,"errorMessage":"DOCKER_HOST was not set, couldn't be found in the usual locations, and the container daemon socket ('%s') is invalid","messagePattern":"DOCKER_HOST was not set, couldn't be found in the usual locations, and the container daemon socket \\('(.+?)'\\) is invalid","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/container/docker_socket.go","lineNumber":93,"sourceCode":"// Exit early if we're in an invalid state (e.g. when no DOCKER_HOST and user supplied \"-\", a dash or omitted)\nif !hasDockerHost && socketHost.Socket != \"\" && !isDockerHostURI(socketHost.Socket) {\n\t// Cases: 1B, 2B\n\t// Should we early-exit here, since there is no host nor socket to talk to?\n\treturn SocketAndHost{}, fmt.Errorf(\"DOCKER_HOST was not set, couldn't be found in the usual locations, and the container daemon socket ('%s') is invalid\", socketHost.Socket)\n}","sourceCodeStart":75,"sourceCodeEnd":111,"githubUrl":"https://github.com/nektos/act/blob/4f411281417e88660bea1c1a1749aa71ae0bd60f/pkg/container/docker_socket.go#L75-L111","documentation":"Error \"DOCKER_HOST was not set, couldn't be found in the usual locations, and the container daemon socket ('%s') is invalid\" thrown in nektos/act.","triggerScenarios":"Thrown at pkg/container/docker_socket.go:93 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set DOCKER_HOST to a valid socket, e.g. unix:///var/run/docker.sock.","Start the Docker daemon and confirm /var/run/docker.sock exists.","On rootless Docker or Podman, point DOCKER_HOST at the user socket (e.g. unix:///run/user/$UID/docker.sock)."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"4f411281417e88660bea1c1a1749aa71ae0bd60f","analyzedAt":"2026-08-15T09:19:46.307Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}