fix: return container.inspect() on container creation

This commit is contained in:
CyberL1 2025-01-07 13:16:01 +01:00
parent e2e4b75681
commit 2d658b55b5

View File

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