mirror of
https://github.com/louislam/dockge.git
synced 2025-06-20 17:58:10 +02:00
Fix: generate compose without project name
This commit is contained in:
parent
7fcc4c510c
commit
6dff52cc73
@ -311,7 +311,12 @@ export class MainSocketHandler extends SocketHandler {
|
|||||||
throw new ValidationError("dockerRunCommand must be a string");
|
throw new ValidationError("dockerRunCommand must be a string");
|
||||||
}
|
}
|
||||||
|
|
||||||
const composeTemplate = composerize(dockerRunCommand);
|
// Option: 'latest' | 'v2x' | 'v3x'
|
||||||
|
let composeTemplate = composerize(dockerRunCommand, "", "latest");
|
||||||
|
|
||||||
|
// Remove the first line "name: <your project name>"
|
||||||
|
composeTemplate = composeTemplate.split("\n").slice(1).join("\n");
|
||||||
|
|
||||||
callback({
|
callback({
|
||||||
ok: true,
|
ok: true,
|
||||||
composeTemplate,
|
composeTemplate,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user