mirror of
https://github.com/MCSManager/MCSManager.git
synced 2025-01-30 15:19:32 +08:00
Merge pull request #1032 from yzy613/patch-1
feat(docker_start.ts): sync assign hostname
This commit is contained in:
commit
84a3923a61
@ -202,6 +202,7 @@ export default class DockerStartCommand extends InstanceCommand {
|
|||||||
const docker = new Docker();
|
const docker = new Docker();
|
||||||
const container = await docker.createContainer({
|
const container = await docker.createContainer({
|
||||||
name: containerName,
|
name: containerName,
|
||||||
|
Hostname: containerName,
|
||||||
Image: instance.config.docker.image,
|
Image: instance.config.docker.image,
|
||||||
AttachStdin: true,
|
AttachStdin: true,
|
||||||
AttachStdout: true,
|
AttachStdout: true,
|
||||||
|
Loading…
Reference in New Issue
Block a user