MCPcopy Create free account
hub / github.com/Sagyam/linite / dockerExec

Function dockerExec

scripts/validate-seed-docker.ts:201–207  ·  view source on GitHub ↗
(containerName: string, command: string, timeout = 30000)

Source from the content-addressed store, hash-verified

199
200// Execute command in Docker container
201function dockerExec(containerName: string, command: string, timeout = 30000): boolean {
202 const result = spawnSync('docker', ['exec', containerName, 'bash', '-c', command], {
203 stdio: 'pipe',
204 timeout,
205 });
206 return result.status === 0;
207}
208
209// Start a Docker container
210function startContainer(config: ContainerConfig): boolean {

Callers 2

startContainerFunction · 0.85
validatePackageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected