1
0
mirror of https://github.com/bingohuang/docker-labs.git synced 2025-07-15 02:37:27 +08:00

Set default resize options

This commit is contained in:
Marcos Lilljedahl 2016-10-11 17:05:06 -03:00
parent 50a08f265c
commit 3dd5a8b5ef

View File

@ -71,6 +71,12 @@ func AttachExecConnection(execId string, ctx context.Context) (*types.HijackedRe
return nil, err
}
err = c.ContainerExecResize(ctx, execId, types.ResizeOptions{Height: 24, Width: 80})
if err != nil {
return nil, err
}
return &conn, nil
}