{"record":{"id":"2f68580945f4f03c","repo":"juanfont/headscale","slug":"s-could-not-start-tailscale-container-version-2f6858","errorCode":null,"errorMessage":"%s could not start tailscale container (version: %s): %w","messagePattern":"(.+?) could not start tailscale container \\(version: (.+?)\\): %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"integration/tsic/tsic.go","lineNumber":589,"sourceCode":"\t\tif err != nil {\n\t\t\t//nolint:gosec // G706: tag value is from MustTestVersions, not external input\n\t\t\tlog.Printf(\"Pull failed for %s:%s, error: %v\", tailscaleOptions.Repository, tailscaleOptions.Tag, err)\n\t\t}\n\n\t\tcontainer, err = pool.RunWithOptions(\n\t\t\ttailscaleOptions,\n\t\t\tdockertestutil.DockerRestartPolicy,\n\t\t\tdockertestutil.DockerAllowLocalIPv6,\n\t\t\tdockertestutil.DockerAllowNetworkAdministration,\n\t\t\tdockertestutil.DockerMemoryLimit,\n\t\t)\n\t\tif err != nil {\n\t\t\tlog.Printf(\"Docker run failed for %s (version: v%s), error: %v\", hostname, version, err)\n\t\t}\n\t}\n\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\n\t\t\t\"%s could not start tailscale container (version: %s): %w\",\n\t\t\thostname,\n\t\t\tversion,\n\t\t\terr,\n\t\t)\n\t}\n\n\tlog.Printf(\"Created %s container\\n\", hostname)\n\n\ttsic.container = container\n\n\tfor i, cert := range tsic.caCerts {\n\t\terr = tsic.WriteFile(fmt.Sprintf(\"%s/user-%d.crt\", caCertRoot, i), cert)\n\t\tif err != nil {\n\t\t\treturn nil, fmt.Errorf(\"writing TLS certificate to container: %w\", err)\n\t\t}\n\t}\n","sourceCodeStart":571,"sourceCodeEnd":607,"githubUrl":"https://github.com/juanfont/headscale/blob/565fd254d06c4c7f9a8cad1714a43445c79ba420/integration/tsic/tsic.go#L571-L607","documentation":"Error \"%s could not start tailscale container (version: %s): %w\" thrown in juanfont/headscale.","triggerScenarios":"Thrown at integration/tsic/tsic.go:589 when the library encounters an invalid state.","commonSituations":"Starting the tailscale container failed. Check Docker logs for the container and that the image for the requested version exists.","solutions":["Inspect the wrapped error for the underlying cause and correct the failing condition (could not start tailscale container (version); retry the operation after fixing the input, configuration, or environment."],"exampleFix":"Inspect the wrapped error for the underlying cause and correct the failing condition (could not start tailscale container (version); retry the operation after fixing the input, configuration, or environment.","handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"565fd254d06c4c7f9a8cad1714a43445c79ba420","analyzedAt":"2026-08-15T13:12:30.133Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}