feat: docker usage examples

This commit is contained in:
Nicolas Meienberger
2025-09-24 21:57:20 +02:00
parent 7b778cfafd
commit 86f7ae8a89
5 changed files with 123 additions and 9 deletions

View File

@@ -23,9 +23,18 @@ export const driverController = new Hono()
Err: "",
});
})
.post("/VolumeDriver.Mount", (c) => {
.post("/VolumeDriver.Mount", async (c) => {
const body = await c.req.json();
if (!body.Name) {
return c.json({ Err: "Volume name is required" }, 400);
}
const volumeRoot = config.volumeRootHost;
const mountpoint = `${volumeRoot}/${body.Name}/_data`;
return c.json({
Mountpoint: `/mnt/something`,
Mountpoint: mountpoint,
});
})
.post("/VolumeDriver.Unmount", (c) => {