fix: 容器内以 root 运行以访问 Docker socket,docker compose 改为 docker-compose
This commit is contained in:
+2
-2
@@ -297,7 +297,7 @@ export async function executeUpdate(
|
||||
|
||||
// 3. 构建新镜像
|
||||
onLog("[3/4] 构建新 Docker 镜像");
|
||||
execSync(`cd "${tmpDir}" && docker compose -p recipe_tool build`, {
|
||||
execSync(`cd "${tmpDir}" && docker-compose -p recipe_tool build`, {
|
||||
encoding: "utf-8",
|
||||
timeout: 600000,
|
||||
windowsHide: true,
|
||||
@@ -307,7 +307,7 @@ export async function executeUpdate(
|
||||
|
||||
// 4. 重启服务
|
||||
onLog("[4/4] 重启服务");
|
||||
execSync(`cd "${tmpDir}" && docker compose -p recipe_tool up -d`, {
|
||||
execSync(`cd "${tmpDir}" && docker-compose -p recipe_tool up -d`, {
|
||||
encoding: "utf-8",
|
||||
timeout: 60000,
|
||||
windowsHide: true,
|
||||
|
||||
Reference in New Issue
Block a user