This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

semble / src / modules / annotations / infrastructure / repositories / assertDockerDaemon.ts
337 B 14 lines
1import { exec } from "child_process"; 2import { promisify } from "util"; 3 4const execAsync = promisify(exec); 5 6export async function assertDockerIsRunning() { 7 try { 8 await execAsync("docker info"); 9 } catch (err) { 10 throw new Error( 11 "Docker daemon is not running. Please start Docker before running the tests." 12 ); 13 } 14}