MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / stopSelfhostContainer

Function stopSelfhostContainer

e2e/setup/selfhost-docker.boot.ts:135–143  ·  view source on GitHub ↗
(port: number, logFile?: string)

Source from the content-addressed store, hash-verified

133 * container. The volume stays — it's the deployment's persistent data.
134 */
135export const stopSelfhostContainer = async (port: number, logFile?: string): Promise<void> => {
136 const name = selfhostDockerContainerName(port);
137 await exec("docker", ["stop", name]).catch(() => {});
138 if (logFile) {
139 const { stdout } = await exec("docker", ["logs", name]).catch(() => ({ stdout: "" }));
140 if (stdout) appendFileSync(logFile, stdout);
141 }
142 await exec("docker", ["rm", "-f", name]).catch(() => {});
143};
144
145export const bootSelfhostDocker = async (
146 options: SelfhostDockerBootOptions,

Callers 2

selfhostDockerTargetFunction · 0.90
bootSelfhostDockerFunction · 0.85

Calls 1

Tested by

no test coverage detected