MCPcopy Create free account
hub / github.com/METR/vivaria / assertContainerExists

Method assertContainerExists

server/src/docker/docker.ts:316–321  ·  view source on GitHub ↗
(containerName: string)

Source from the content-addressed store, hash-verified

314 }
315
316 private async assertContainerExists(containerName: string) {
317 const doesContainerExist = await this.doesContainerExist(containerName)
318 if (!doesContainerExist) {
319 throw new TRPCError({ code: 'NOT_FOUND', message: `Container ${containerName} not found` })
320 }
321 }
322
323 async execPython(
324 containerName: string,

Callers 2

getContainerIpAddressMethod · 0.95
restartContainerMethod · 0.95

Calls 1

doesContainerExistMethod · 0.95

Tested by

no test coverage detected