working commit

This commit is contained in:
2026-02-11 20:45:45 +02:00
parent 2e3dbe8f7c
commit d318f39f3c
15 changed files with 337 additions and 90 deletions
+6 -3
View File
@@ -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
}