Check docker before build

This commit is contained in:
Louis Lam
2023-07-03 20:30:21 +08:00
parent 4fe0891a60
commit 7c529d8f83
2 changed files with 12 additions and 3 deletions

9
extra/test-docker.js Normal file
View File

@@ -0,0 +1,9 @@
// Check if docker is running
const { exec } = require("child_process");
exec("docker ps", (err, stdout, stderr) => {
if (err) {
console.error("Docker is not running. Please start docker and try again.");
process.exit(1);
}
});