{"record":{"id":"e206696b5421675e","repo":"portainer/portainer","slug":"docker-is-not-supported-by-this-stack","errorCode":null,"errorMessage":"Docker is not supported by this stack","messagePattern":"Docker is not supported by this stack","errorType":"http","errorClass":"HandlerError","httpStatus":400,"severity":"error","filePath":"api/http/handler/endpointedge/endpointedge_stack_inspect.go","lineNumber":83,"sourceCode":"\t\treturn httperror.InternalServerError(\"Unable to find an edge stack with the specified identifier inside the database\", fmt.Errorf(\"failed to find Edge stack from the database: %w. Environment ID: %d\", err, endpoint.ID))\n\t}\n\n\t// WARNING: this variable must not be mutated\n\tedgeStack := s.(*portainer.EdgeStack)\n\n\trelation, err := handler.DataStore.EndpointRelation().EndpointRelation(endpoint.ID)\n\tif err != nil && !handler.DataStore.IsErrObjectNotFound(err) {\n\t\treturn httperror.InternalServerError(\"Unable to retrieve relation object from the database\", fmt.Errorf(\"%w. Environment ID: %d\", err, endpoint.ID))\n\t}\n\n\tif relation == nil || !relation.EdgeStacks[edgeStack.ID] {\n\t\treturn httperror.Forbidden(\"Permission denied to access this Edge stack\", fmt.Errorf(\"Edge stack %d is not assigned to environment %d\", edgeStack.ID, endpoint.ID))\n\t}\n\n\tfileName := edgeStack.EntryPoint\n\tif endpointutils.IsDockerEndpoint(endpoint) {\n\t\tif fileName == \"\" {\n\t\t\treturn httperror.BadRequest(\"Docker is not supported by this stack\", fmt.Errorf(\"no filename is provided for the Docker endpoint. Environment ID: %d\", endpoint.ID))\n\t\t}\n\t}\n\n\tnamespace := \"\"\n\tif !edgeStack.UseManifestNamespaces {\n\t\tnamespace = kubernetes.DefaultNamespace\n\t}\n\n\tif endpointutils.IsKubernetesEndpoint(endpoint) {\n\t\tfileName = edgeStack.ManifestPath\n\n\t\tif fileName == \"\" {\n\t\t\treturn httperror.BadRequest(\"Kubernetes is not supported by this stack\", fmt.Errorf(\"no filename is provided for the Kubernetes endpoint. Environment ID: %d\", endpoint.ID))\n\t\t}\n\t}\n\n\tdirEntries, err := filesystem.LoadDir(edgeStack.ProjectPath)\n\tif err != nil {","sourceCodeStart":65,"sourceCodeEnd":101,"githubUrl":"https://github.com/portainer/portainer/blob/17e74456ff6e794b9d5439ec3fa06922aa18a3f8/api/http/handler/endpointedge/endpointedge_stack_inspect.go#L65-L101","documentation":"Error \"Docker is not supported by this stack\" thrown in portainer/portainer.","triggerScenarios":"Thrown at api/http/handler/endpointedge/endpointedge_stack_inspect.go:83 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"17e74456ff6e794b9d5439ec3fa06922aa18a3f8","analyzedAt":"2026-08-26T23:09:01.915Z","schemaVersion":2},"datasetVersion":"2026-08-27T03:17:27.898Z"}