working commit
This commit is contained in:
@@ -129,7 +129,8 @@ func (util *ImageUtil) imageInfo(params *ImageInfoParams) (*ImageInfoResult, err
|
||||
if err != nil {
|
||||
return res, err
|
||||
}
|
||||
opres, err := cli.ImageInfo(ctx, params.Imagepath, timeout)
|
||||
ctx, _ = context.WithTimeout(ctx, timeout)
|
||||
opres, err := cli.ImageInfo(ctx, params.Imagepath)
|
||||
if err != nil {
|
||||
return res, err
|
||||
}
|
||||
@@ -165,7 +166,8 @@ func (util *ImageUtil) pullImage(params *PullImageParams) (*PullImageResult, err
|
||||
if err != nil {
|
||||
return res, err
|
||||
}
|
||||
err = cli.PullImage(ctx, params.Imagepath, params.Filepath, timeout)
|
||||
ctx, _ = context.WithTimeout(ctx, timeout)
|
||||
err = cli.PullImage(ctx, params.Imagepath, params.Filepath)
|
||||
if err != nil {
|
||||
return res, err
|
||||
}
|
||||
@@ -199,7 +201,8 @@ func (util *ImageUtil) pushImage(params *PushImageParams) (*PushImageResult, err
|
||||
if err != nil {
|
||||
return res, err
|
||||
}
|
||||
err = cli.PushImage(ctx, params.Filepath, params.Imagepath, timeout)
|
||||
ctx, _ = context.WithTimeout(ctx, timeout)
|
||||
err = cli.PushImage(ctx, params.Filepath, params.Imagepath)
|
||||
if err != nil {
|
||||
return res, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user