mirror of
https://github.com/bingohuang/docker-labs.git
synced 2025-07-14 18:27:25 +08:00
Set default resize options
This commit is contained in:
parent
50a08f265c
commit
3dd5a8b5ef
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user