mirror of https://github.com/docker/cli.git
Windows: OCI process struct convergence
Signed-off-by: John Howard <jhoward@microsoft.com>
This commit is contained in:
parent
86c86fc166
commit
6be7efbe30
|
@ -18,10 +18,10 @@ func (cli *Client) ContainerExecResize(ctx context.Context, execID string, optio
|
||||||
return cli.resize(ctx, "/exec/"+execID, options.Height, options.Width)
|
return cli.resize(ctx, "/exec/"+execID, options.Height, options.Width)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (cli *Client) resize(ctx context.Context, basePath string, height, width int) error {
|
func (cli *Client) resize(ctx context.Context, basePath string, height, width uint) error {
|
||||||
query := url.Values{}
|
query := url.Values{}
|
||||||
query.Set("h", strconv.Itoa(height))
|
query.Set("h", strconv.Itoa(int(height)))
|
||||||
query.Set("w", strconv.Itoa(width))
|
query.Set("w", strconv.Itoa(int(width)))
|
||||||
|
|
||||||
resp, err := cli.post(ctx, basePath+"/resize", query, nil, nil)
|
resp, err := cli.post(ctx, basePath+"/resize", query, nil, nil)
|
||||||
ensureReaderClosed(resp)
|
ensureReaderClosed(resp)
|
||||||
|
|
Loading…
Reference in New Issue