mirror of https://github.com/docker/docs.git
Merge pull request #20316 from sarrocks1/patch-1
Fix deprecated types.ImagePullOptions usage and replace with image.PullOptions
This commit is contained in:
commit
8bdf1919e8
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue