Browse Source

Use correct fn for resizing TTY

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
Brian Goff 9 years ago
parent
commit
3260ddb10b
1 changed files with 1 additions and 1 deletions
  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
-	if !isExec {
+	if isExec {
 		err = cli.client.ContainerExecResize(options)
 	} else {
 		err = cli.client.ContainerResize(options)