{"record":{"id":"fe37bb758ff804ff","repo":"zed-industries/zed","slug":"not-currently-supported-for-docker-exec","errorCode":null,"errorMessage":"Not currently supported for docker_exec","messagePattern":"Not currently supported for docker_exec","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/remote/src/transport/docker.rs","lineNumber":849,"sourceCode":"        match interactive {\n            Interactive::Yes => docker_args.push(\"-it\".to_string()),\n            Interactive::No => docker_args.push(\"-i\".to_string()),\n        }\n        docker_args.push(self.connection_options.container_id.to_string());\n\n        docker_args.append(&mut inner_program);\n\n        Ok(CommandTemplate {\n            program: self.docker_cli().to_string(),\n            args: docker_args,\n            // Docker-exec pipes in environment via the \"-e\" argument\n            env: Default::default(),\n        })\n    }\n\n    fn build_forward_ports_command(\n        &self,\n        _forwards: Vec<(u16, String, u16)>,\n    ) -> Result<CommandTemplate> {\n        Err(anyhow::anyhow!(\"Not currently supported for docker_exec\"))\n    }\n\n    fn connection_options(&self) -> RemoteConnectionOptions {\n        RemoteConnectionOptions::Docker(self.connection_options.clone())\n    }\n\n    fn path_style(&self) -> PathStyle {\n        self.path_style.unwrap_or(PathStyle::Unix)\n    }\n\n    fn remote_platform(&self) -> RemotePlatform {\n        // Docker containers are always Linux; the platform is populated during\n        // setup, so this fallback is only for the brief pre-detection window.\n        self.remote_platform.unwrap_or(RemotePlatform {\n            os: RemoteOs::Linux,\n            arch: RemoteArch::X86_64,","sourceCodeStart":831,"sourceCodeEnd":867,"githubUrl":"https://github.com/zed-industries/zed/blob/5a9b9558db01a6b906cec2fb70a797affdc58cdd/crates/remote/src/transport/docker.rs#L831-L867","documentation":"In DockerRemoteConnection::build_forward_ports_command: port forwarding is not implemented for docker-exec connections (docker exec provides no port-forward mechanism), so the call unconditionally returns this error.","triggerScenarios":"Thrown at crates/remote/src/transport/docker.rs:846 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use a full dev container (docker) connection instead of docker exec","Forward ports manually via docker CLI"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5a9b9558db01a6b906cec2fb70a797affdc58cdd","analyzedAt":"2026-08-20T19:29:52.058Z","contentChangedAt":"2026-08-20T19:29:52.058Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}