{"record":{"id":"1d7cc6e84f0ebfd8","repo":"bcicen/ctop","slug":"cannot-start-container-v","errorCode":null,"errorMessage":"cannot start container: %v","messagePattern":"cannot start container: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"connector/manager/docker.go","lineNumber":112,"sourceCode":"func (dc *Docker) Start() error {\n\tc, err := dc.client.InspectContainer(dc.id)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"cannot inspect container: %v\", err)\n\t}\n\n\tif err := dc.client.StartContainer(c.ID, c.HostConfig); err != nil {\n\t\treturn fmt.Errorf(\"cannot start container: %v\", err)\n\t}\n\treturn nil\n}","sourceCodeStart":94,"sourceCodeEnd":130,"githubUrl":"https://github.com/bcicen/ctop/blob/59f00dd6aaebf48f3bc501e174f75f815c2619f0/connector/manager/docker.go#L94-L130","documentation":"Wraps the error returned by the Docker Remote API client's StartContainer call in Docker.Start. It fires when the container could not be transitioned to running — typically because the container is already running, was removed, or the host config is rejected by the daemon (port conflicts, missing image).","triggerScenarios":"Thrown at connector/manager/docker.go:112 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the Docker daemon is reachable and the container ID exists via docker inspect","Check whether the container is already running before calling StartContainer","Inspect daemon logs for port-binding or image errors surfaced in the wrapped error","Recreate the container if its definition is stale or removed"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"59f00dd6aaebf48f3bc501e174f75f815c2619f0","analyzedAt":"2026-09-02T23:34:03.832Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-10T02:17:09.455Z"}