mirror of
https://github.com/louislam/dockge.git
synced 2025-04-04 23:42:20 +00:00
Fix: generate compose without project name
This commit is contained in:
parent
7fcc4c510c
commit
6dff52cc73
1 changed files with 6 additions and 1 deletions
|
@ -311,7 +311,12 @@ export class MainSocketHandler extends SocketHandler {
|
|||
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({
|
||||
ok: true,
|
||||
composeTemplate,
|
||||
|
|
Loading…
Add table
Reference in a new issue