fix container name not set
This commit is contained in:
parent
4acf870e7b
commit
752efeece8
1 changed files with 5 additions and 5 deletions
|
@ -87,8 +87,8 @@ export class Runner {
|
|||
}
|
||||
|
||||
private start_process() {
|
||||
const paths = container_paths(name);
|
||||
const command = container_command(name, paths.root, {
|
||||
const paths = container_paths(this.name);
|
||||
const command = container_command(this.name, paths.root, {
|
||||
boot: true,
|
||||
veth: true,
|
||||
redirections: this.config.redirections,
|
||||
|
@ -99,8 +99,8 @@ export class Runner {
|
|||
syscall_filter: ["add_key", "keyctl", "bpf"],
|
||||
});
|
||||
this.loop = loop_process(command, {
|
||||
on_start: () => log("container", name, "started"),
|
||||
on_stop: () => log("container", name, "stopped"),
|
||||
on_start: () => log("container", this.name, "started"),
|
||||
on_stop: () => log("container", this.name, "stopped"),
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -109,7 +109,7 @@ export class Runner {
|
|||
}
|
||||
|
||||
async update_proxies() {
|
||||
const paths = container_paths(name);
|
||||
const paths = container_paths(this.name);
|
||||
await Deno.mkdir(paths.sites, { recursive: true });
|
||||
const sites = new Set<string>();
|
||||
for (const redir of this.config.redirections) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue