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(); }, ); };