Merge pull request #20316 from sarrocks1/patch-1

Fix deprecated types.ImagePullOptions usage and replace with image.PullOptions
This commit is contained in:
Sebastiaan van Stijn 2024-06-27 22:36:50 +02:00 committed by GitHub
commit 8bdf1919e8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -83,6 +83,7 @@ import (
"github.com/docker/docker/api/types"
"github.com/docker/docker/api/types/container"
"github.com/docker/docker/api/types/image"
"github.com/docker/docker/client"
"github.com/docker/docker/pkg/stdcopy"
)
@ -95,7 +96,7 @@ func main() {
}
defer cli.Close()
reader, err := cli.ImagePull(ctx, "docker.io/library/alpine", types.ImagePullOptions{})
reader, err := cli.ImagePull(ctx, "docker.io/library/alpine", image.PullOptions{})
if err != nil {
panic(err)
}