@@ -45,7 +45,7 @@ const pullImage = async (req: Request, res: Response, next: NextFunction) => {
4545 const imageTag = req . body . imageTag
4646 const apiKey = req . body . apiKey
4747 await NimContainerManager . pullImage ( imageTag , apiKey )
48- return res . send ( ` Pulling image ${ imageTag } ` )
48+ return res . send ( ' Pulling image' )
4949 } catch ( error ) {
5050 next ( error )
5151 }
@@ -62,7 +62,7 @@ const startContainer = async (req: Request, res: Response, next: NextFunction) =
6262 return res . status ( 400 ) . send ( 'nimRelaxMemConstraints must be 0 or 1' )
6363 }
6464 await NimContainerManager . startContainer ( imageTag , apiKey , hostPort , nimRelaxMemConstraints )
65- return res . send ( ` Starting container ${ imageTag } ` )
65+ return res . send ( ' Starting container' )
6666 } catch ( error ) {
6767 next ( error )
6868 }
@@ -74,7 +74,7 @@ const getImage = async (req: Request, res: Response, next: NextFunction) => {
7474 const images = await NimContainerManager . userImageLibrary ( )
7575 const image = images . find ( ( img : any ) => img . tag === imageTag )
7676 if ( ! image ) {
77- return res . status ( 404 ) . send ( ` Image ${ imageTag } not found` )
77+ return res . status ( 404 ) . send ( ' Image not found' )
7878 }
7979 return res . json ( image )
8080 } catch ( error ) {
@@ -91,7 +91,7 @@ const getContainer = async (req: Request, res: Response, next: NextFunction) =>
9191 const images = await NimContainerManager . userImageLibrary ( )
9292 const image = images . find ( ( img : any ) => img . tag === imageTag )
9393 if ( ! image ) {
94- return res . status ( 404 ) . send ( ` Image ${ imageTag } not found` )
94+ return res . status ( 404 ) . send ( ' Image not found' )
9595 }
9696
9797 const containers = await NimContainerManager . listRunningContainers ( )
@@ -103,14 +103,14 @@ const getContainer = async (req: Request, res: Response, next: NextFunction) =>
103103 return res . json ( portInUse )
104104 } else {
105105 return res . status ( 409 ) . send ( {
106- message : ` Port ${ port } is already in use by another container` ,
106+ message : ' Port is already in use by another container' ,
107107 container : portInUse
108108 } )
109109 }
110110 }
111111
112112 // If no container found with matching port, return 404
113- return res . status ( 404 ) . send ( ` Container of ${ imageTag } with port ${ port } not found` )
113+ return res . status ( 404 ) . send ( ' Container not found' )
114114 } catch ( error ) {
115115 next ( error )
116116 }
0 commit comments