Skip to content

Commit ad9df11

Browse files
committed
Fixed deprecated functions
1 parent fbd2db8 commit ad9df11

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/containers/docker.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ func PullDockerImage(cli *client.Client, ref string) error {
8888
func CheckDockerImageExists(cli *client.Client, ref string) bool {
8989
ctx := context.Background()
9090

91-
_, _, err := cli.ImageInspectWithRaw(ctx, ref)
91+
_, err := cli.ImageInspect(ctx, ref)
9292
return err == nil
9393
}
9494

@@ -100,7 +100,7 @@ func ReadDockerImage(cli *client.Client, ref string) ([]byte, error) {
100100
return nil, fmt.Errorf("failed to pull image: %s", err)
101101
}
102102

103-
imageInspect, _, err := cli.ImageInspectWithRaw(ctx, ref)
103+
imageInspect, err := cli.ImageInspect(ctx, ref)
104104
if err != nil {
105105
return nil, fmt.Errorf("failed to inspect image: %s", err)
106106
}

0 commit comments

Comments
 (0)