mirror of
https://github.com/bingohuang/docker-labs.git
synced 2025-10-05 01:43:22 +08:00
Set default resize options
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user