removed resize logic
This commit is contained in:
parent
c8ac178bea
commit
5b5a084939
@ -602,15 +602,16 @@ func (con Connection) AttachServer(ctx *gin.Context) {
|
|||||||
stop = true
|
stop = true
|
||||||
|
|
||||||
case "resize":
|
case "resize":
|
||||||
err2 := con.dockerClient.ContainerResize(context.TODO(), containers[0].ID, container.ResizeOptions{Height: Command.Arguments[1].(uint), Width: Command.Arguments[0].(uint)})
|
log.Printf("Fake resize %dx%d", Command.Arguments[0].(uint), Command.Arguments[1].(uint))
|
||||||
if err2 != nil {
|
// err2 := con.dockerClient.ContainerResize(context.TODO(), containers[0].ID, container.ResizeOptions{Height: Command.Arguments[1].(uint), Width: Command.Arguments[0].(uint)})
|
||||||
log.Printf("Failed to resize container to %dx%d: %s", Command.Arguments[0].(uint), Command.Arguments[1].(uint), err)
|
// if err2 != nil {
|
||||||
}
|
// log.Printf("Failed to resize container to %dx%d: %s", Command.Arguments[0].(uint), Command.Arguments[1].(uint), err)
|
||||||
|
// }
|
||||||
|
|
||||||
hijacked, err2 = con.dockerClient.ContainerAttach(context.TODO(), containers[0].ID, container.AttachOptions{Stream: true, Stdin: true, Stdout: true, Stderr: true})
|
// hijacked, err2 = con.dockerClient.ContainerAttach(context.TODO(), containers[0].ID, container.AttachOptions{Stream: true, Stdin: true, Stdout: true, Stderr: true})
|
||||||
if err2 != nil {
|
// if err2 != nil {
|
||||||
log.Printf("Failed to reattach container %s", err)
|
// log.Printf("Failed to reattach container %s", err)
|
||||||
}
|
// }
|
||||||
|
|
||||||
}
|
}
|
||||||
case data := <-containerRead:
|
case data := <-containerRead:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user