mirror of
https://github.com/CyberL1/dlinux-dashboard.git
synced 2025-01-21 17:09:19 -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 },
|
||||
async (req: FastifyRequest<{ Body: CreateContainerBody }>) => {
|
||||
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