[2024-09-12 15:17:24][DEBUG] Incoming access alias is default
[2024-09-12 15:17:24][DEBUG] The converted access alias is default
[2024-09-12 15:19:51][DEBUG] Process SIGINT
[31mError Message:[39m
[31mCommand failed: docker ps -a | grep [object Promise] | awk '{print $1}' | xargs docker kill[39m
[31mgrep: Unmatched [, [^, [:, [., or [=[39m
[31m"docker kill" requires at least 1 argument.[39m
[31mSee 'docker kill --help'.[39m
[31m[39m
[31mUsage: docker kill [OPTIONS] CONTAINER [CONTAINER...][39m
[31m[39m
[31mKill one or more running containers[39m
[31m[39m
[2024-09-12 15:19:51][DEBUG] Error: Command failed: docker ps -a | grep [object Promise] | awk '{print $1}' | xargs docker kill
grep: Unmatched [, [^, [:, [., or [=
"docker kill" requires at least 1 argument.
See 'docker kill --help'.
Usage: docker kill [OPTIONS] CONTAINER [CONTAINER...]
Kill one or more running containers
at genericNodeError (node:internal/errors:984:15)
at wrappedFn (node:internal/errors:538:14)
at checkExecSyncError (node:child_process:890:11)
at execSync (node:child_process:962:15)
at /home/liuco/.local/share/pnpm/global/5/.pnpm/@serverless-devs+s@3.1.1/node_modules/@serverless-devs/s/lib/index.js:281:1456
at m9e (/home/liuco/.local/share/pnpm/global/5/.pnpm/@serverless-devs+s@3.1.1/node_modules/@serverless-devs/s/lib/index.js:281:422)
at Wd.execSync (/home/liuco/.local/share/pnpm/global/5/.pnpm/@serverless-devs+s@3.1.1/node_modules/@serverless-devs/s/lib/index.js:281:1437)
at process.<anonymous> (/home/liuco/.s/components/devsapp.cn/v3/fc3/dist/index.js:333:235952)
at process.emit (node:events:531:35)
at process.emit (node:domain:488:12)
[90mA complete log of this run can be found in: [4m/home/liuco/.s/logs/0912151724[24m[39m
[90mEnv: @serverless-devs/s: 3.1.1, linux-x64 node-v20.14.0 [39m
[90mLogs: [4m/home/liuco/.s/logs/0912151724[24m [39m
[90mFeedback: [36m[4mhttps://github.com/Serverless-Devs/Serverless-Devs/issues[24m[39m[90m [39m
[90m[39m
[2024-09-12 15:19:49][DEBUG] Run traceid: 0912151724
ctrl-c
的时候报错,不能杀死容器。错误定位到这里,没有使用await来调用异步函数
getRuntimeRunImage
,导致这个错误。 https://github.com/devsapp/fc3/blob/c402e2806e289cfe2467d710bae25ec61e2b6728/src/subCommands/local/impl/start/customContainerLocalStart.ts#L53-L63