浏览代码

Merge pull request #18557 from cpuguy83/use_correct_resize_fn

Use correct fn for resizing TTY
David Calavera 9 年之前
父节点
当前提交
a0f80079b8
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      api/client/utils.go

+ 1 - 1
api/client/utils.go

@@ -43,7 +43,7 @@ func (cli *DockerCli) resizeTty(id string, isExec bool) {
 	}
 	}
 
 
 	var err error
 	var err error
-	if !isExec {
+	if isExec {
 		err = cli.client.ContainerExecResize(options)
 		err = cli.client.ContainerExecResize(options)
 	} else {
 	} else {
 		err = cli.client.ContainerResize(options)
 		err = cli.client.ContainerResize(options)