mirror of https://github.com/docker/docs.git
commit
20a099200d
|
@ -197,10 +197,11 @@ func main() {
|
|||
}
|
||||
cli.NegotiateAPIVersion(ctx)
|
||||
|
||||
_, err = cli.ImagePull(ctx, "docker.io/library/alpine", types.ImagePullOptions{})
|
||||
reader, err := cli.ImagePull(ctx, "docker.io/library/alpine", types.ImagePullOptions{})
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
io.Copy(os.Stdout, reader)
|
||||
|
||||
resp, err := cli.ContainerCreate(ctx, &container.Config{
|
||||
Image: "alpine",
|
||||
|
|
Loading…
Reference in New Issue