Skip to content

Commit

Permalink
Set default resize options
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosnils committed Oct 11, 2016
1 parent 50a08f2 commit 3dd5a8b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions services/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 3dd5a8b

Please sign in to comment.