MCPcopy Create free account
hub / github.com/MCSManager/MCSManager / killContainer

Function killContainer

daemon/src/service/takeover_container.ts:6–11  ·  view source on GitHub ↗
(containerInfo: ContainerInfo)

Source from the content-addressed store, hash-verified

4import InstanceSubsystem from "./system_instance";
5
6async function killContainer(containerInfo: ContainerInfo) {
7 const docker = new DefaultDocker();
8 const container = docker.getContainer(containerInfo.Id);
9 container.kill().catch(() => {});
10 container.remove().catch(() => {});
11}
12
13export default async function takeoverContainer() {
14 const docker = new DefaultDocker();

Callers 1

takeoverContainerFunction · 0.85

Calls 2

getContainerMethod · 0.80
killMethod · 0.45

Tested by

no test coverage detected