Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async stopNode(network: Network, node: CommonNode) {
info(`Stopping docker container for ${node.name}`);
info(` - path: ${network.path}`);
const result = await this.execute(compose.stopOne, node.name, this.getArgs(network));
info(`Container stopped:\n ${result.out || result.err}`);
}