From 2d658b55b590a53b46454d5ca6b48c777c9db78f Mon Sep 17 00:00:00 2001 From: CyberL1 Date: Tue, 7 Jan 2025 13:16:01 +0100 Subject: [PATCH] fix: return `container.inspect()` on container creation --- src/routes/containers/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/containers/index.ts b/src/routes/containers/index.ts index bd8c23f..69376bf 100644 --- a/src/routes/containers/index.ts +++ b/src/routes/containers/index.ts @@ -13,9 +13,9 @@ export default (fastify: FastifyInstance) => { { schema: createContainerSchema }, async (req: FastifyRequest<{ Body: CreateContainerBody }>) => { const container = await createContainer({ image: req.body.image }); - container.start(); + await container.start(); - return container; + return container.inspect(); }, ); };