MCPcopy Index your code
hub / github.com/QuantGeekDev/docker-mcp / execute

Method execute

src/docker_mcp/docker_executor.py:27–34  ·  view source on GitHub ↗
(self, cmd: List[str])

Source from the content-addressed store, hash-verified

25
26class UnixExecutor:
27 async def execute(self, cmd: List[str]) -> Tuple[int, str, str]:
28 process = await asyncio.create_subprocess_exec(
29 *cmd,
30 stdout=asyncio.subprocess.PIPE,
31 stderr=asyncio.subprocess.PIPE
32 )
33 stdout, stderr = await process.communicate()
34 return process.returncode, stdout.decode(), stderr.decode()
35
36
37class DockerExecutorBase(ABC):

Callers 1

run_commandMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected