added console size
This commit is contained in:
parent
1fedda4bf1
commit
0533977664
@ -340,6 +340,7 @@ func (con Connection) StartServer(ctx *gin.Context) {
|
|||||||
AutoRemove: true,
|
AutoRemove: true,
|
||||||
Mounts: []mount.Mount{{Source: serverInfo.Id, Target: image.Config.WorkingDir, Type: "volume"}},
|
Mounts: []mount.Mount{{Source: serverInfo.Id, Target: image.Config.WorkingDir, Type: "volume"}},
|
||||||
PortBindings: portMapping,
|
PortBindings: portMapping,
|
||||||
|
ConsoleSize: [2]uint{1000, 1000},
|
||||||
},
|
},
|
||||||
&network.NetworkingConfig{},
|
&network.NetworkingConfig{},
|
||||||
&v1.Platform{},
|
&v1.Platform{},
|
||||||
@ -513,7 +514,7 @@ func (con Connection) AttachServer(ctx *gin.Context) {
|
|||||||
close(containerRead)
|
close(containerRead)
|
||||||
}()
|
}()
|
||||||
|
|
||||||
containers, err := con.dockerClient.ContainerList(context.TODO(), container.ListOptions{Filters: filters.NewArgs(filters.Arg("label", "volume_id="+serverId))})
|
containers, err := con.dockerClient.ContainerList(context.TODO(), container.ListOptions{Filters: filters.NewArgs(filters.Arg("label", "volume_id="+serverId), filters.Arg("label", "type=GAME"))})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
ctx.AbortWithError(500, err)
|
ctx.AbortWithError(500, err)
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user