fix(services): Improve services and commit flow: stop AiDoc, use silent docker inspect, sync ports with logging, fix config loading, and bump deps

This commit is contained in:
2025-08-16 11:38:21 +00:00
parent cc37f70185
commit fba3e9d2b0
7 changed files with 1602 additions and 209 deletions

View File

@@ -215,7 +215,7 @@ export class DockerContainer {
*/
public async inspect(containerName: string): Promise<any> {
try {
const result = await this.smartshell.exec(`docker inspect ${containerName} 2>/dev/null`);
const result = await this.smartshell.execSilent(`docker inspect ${containerName}`);
if (result.exitCode === 0) {
return JSON.parse(result.stdout);
}
@@ -231,7 +231,7 @@ export class DockerContainer {
public async getPortMappings(containerName: string): Promise<{ [key: string]: string } | null> {
try {
// Use docker inspect without format to get full JSON, then extract PortBindings
const result = await this.smartshell.exec(`docker inspect ${containerName} 2>/dev/null`);
const result = await this.smartshell.execSilent(`docker inspect ${containerName}`);
if (result.exitCode === 0 && result.stdout) {
const inspectData = JSON.parse(result.stdout);