MCPcopy Create free account
hub / github.com/SocketCluster/socketcluster / dockerStop

Function dockerStop

bin/actions/docker.js:7–22  ·  view source on GitHub ↗
(arg)

Source from the content-addressed store, hash-verified

5const { parsePackageFile } = require('../lib');
6
7const dockerStop = async function (arg) {
8 let appName = arg;
9 if (!appName) {
10 let appPath = '.';
11 let pkg = parsePackageFile(appPath);
12 appName = pkg.name;
13 }
14 try {
15 execSync(`docker stop ${appName}`);
16 execSync(`docker rm ${appName}`);
17 this.successLog(`App '${appName}' was stopped.`);
18 } catch (e) {
19 this.errorLog(`Failed to stop app '${appName}'.`);
20 }
21 process.exit();
22};
23
24const dockerRestart = async function (arg) {
25 let appName = arg;

Callers

nothing calls this directly

Calls 1

parsePackageFileFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…