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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user