MCPcopy Index your code
hub / github.com/devcontainers/cli / devContainerStop

Function devContainerStop

src/test/testUtils.ts:113–120  ·  view source on GitHub ↗
(options: { containerId?: string | null; composeProjectName?: string | null })

Source from the content-addressed store, hash-verified

111 }
112}
113export async function devContainerStop(options: { containerId?: string | null; composeProjectName?: string | null }) {
114 if (options.containerId) {
115 await shellExec(`docker stop ${options.containerId}`);
116 }
117 if (options.composeProjectName) {
118 await shellExec(`docker compose --project-name ${options.composeProjectName} stop`);
119 }
120}
121export async function pathExists(cli: string, workspaceFolder: string, location: string) {
122 try {
123 await shellExec(`${cli} exec --workspace-folder ${workspaceFolder} test -e ${location}`);

Callers 2

describeTests2Function · 0.90

Calls 1

shellExecFunction · 0.85

Tested by

no test coverage detected