mirror of
https://github.com/docker/cli.git
synced 2026-01-25 03:42:05 +03:00
Update engine-api vendoring to latest commit
This picks up the change for `Content-Type` which will help solve issues with authz plugins. Docker-DCO-1.1-Signed-off-by: Phil Estes <estesp@linux.vnet.ibm.com> (github: estesp) Upstream-commit: 1c2db56d2f69f74e2859da251b6b8565d72bcb02 Component: engine
This commit is contained in:
@@ -18,7 +18,8 @@ func (cli *Client) ImageLoad(ctx context.Context, input io.Reader, quiet bool) (
|
||||
if quiet {
|
||||
v.Set("quiet", "1")
|
||||
}
|
||||
resp, err := cli.postRaw(ctx, "/images/load", v, input, nil)
|
||||
headers := map[string][]string{"Content-Type": {"application/x-tar"}}
|
||||
resp, err := cli.postRaw(ctx, "/images/load", v, input, headers)
|
||||
if err != nil {
|
||||
return types.ImageLoadResponse{}, err
|
||||
}
|
||||
|
||||
@@ -148,6 +148,7 @@ type Container struct {
|
||||
NetworkMode string `json:",omitempty"`
|
||||
}
|
||||
NetworkSettings *SummaryNetworkSettings
|
||||
Mounts []MountPoint
|
||||
}
|
||||
|
||||
// CopyConfig contains request body of Remote API:
|
||||
|
||||
Reference in New Issue
Block a user