mirror of
https://github.com/CyberL1/dlinux-dashboard.git
synced 2025-01-22 01:19:18 -05:00
fix: return container.inspect()
on container creation
This commit is contained in:
parent
e2e4b75681
commit
2d658b55b5
@ -13,9 +13,9 @@ export default (fastify: FastifyInstance) => {
|
|||||||
{ schema: createContainerSchema },
|
{ schema: createContainerSchema },
|
||||||
async (req: FastifyRequest<{ Body: CreateContainerBody }>) => {
|
async (req: FastifyRequest<{ Body: CreateContainerBody }>) => {
|
||||||
const container = await createContainer({ image: req.body.image });
|
const container = await createContainer({ image: req.body.image });
|
||||||
container.start();
|
await container.start();
|
||||||
|
|
||||||
return container;
|
return container.inspect();
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user