{"id":"ae73fff2c3a4b2b8","repo":"spring-projects/spring-boot","slug":"connection-to-the-docker-daemon-at-host-faile","errorCode":null,"errorMessage":"Connection to the Docker daemon at '${host}' failed with error \"${causeMessage}\"; ensure the Docker daemon is running and accessible","messagePattern":"Connection to the Docker daemon at '(.+?)' failed with error \"(.+?)\"; ensure the Docker daemon is running and accessible","errorType":"exception","errorClass":"DockerConnectionException","httpStatus":null,"severity":"error","filePath":"buildpack/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/docker/transport/HttpClientTransport.java","lineNumber":176,"sourceCode":"\t}\n\n\tprivate Response execute(HttpUriRequest request) {\n\t\ttry {\n\t\t\tbeforeExecute(request);\n\t\t\tClassicHttpResponse response = this.client.executeOpen(this.host, request, null);\n\t\t\tint statusCode = response.getCode();\n\t\t\tif (statusCode >= 400 && statusCode <= 500) {\n\t\t\t\tbyte[] content = readContent(response);\n\t\t\t\tresponse.close();\n\t\t\t\tErrors errors = (statusCode != 500) ? deserializeErrors(content) : null;\n\t\t\t\tMessage message = deserializeMessage(content);\n\t\t\t\tthrow new DockerEngineException(this.host.toHostString(), request.getUri(), statusCode,\n\t\t\t\t\t\tresponse.getReasonPhrase(), errors, message, content);\n\t\t\t}\n\t\t\treturn new HttpClientResponse(response);\n\t\t}\n\t\tcatch (IOException | URISyntaxException ex) {\n\t\t\tthrow new DockerConnectionException(this.host.toHostString(), ex);\n\t\t}\n\t}\n\n\tprotected void beforeExecute(HttpRequest request) {\n\t}\n\n\tprivate byte @Nullable [] readContent(ClassicHttpResponse response) throws IOException {\n\t\tHttpEntity entity = response.getEntity();\n\t\tif (entity == null) {\n\t\t\treturn null;\n\t\t}\n\t\ttry (InputStream stream = entity.getContent()) {\n\t\t\treturn (stream != null) ? stream.readAllBytes() : null;\n\t\t}\n\t}\n\n\tprivate @Nullable Errors deserializeErrors(byte @Nullable [] content) {\n\t\tif (content == null) {","sourceCodeStart":158,"sourceCodeEnd":194,"githubUrl":"https://github.com/spring-projects/spring-boot/blob/5b2dbdbb8be64415eb6552f81ff7c449c8d251e6/buildpack/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/docker/transport/HttpClientTransport.java#L158-L194","documentation":"Error \"Connection to the Docker daemon at '${host}' failed with error \"${causeMessage}\"; ensure the Docker daemon is running and accessible\" thrown in spring-projects/spring-boot.","triggerScenarios":"Thrown at buildpack/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/docker/transport/HttpClientTransport.java:176 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"analyzedSha":"5b2dbdbb8be64415eb6552f81ff7c449c8d251e6","analyzedAt":"2026-08-04T18:53:14.967Z","schemaVersion":2}