Merge pull request #6761 from bruceadowns/patch-2

Update index.md
This commit is contained in:
L-Hudson 2019-01-03 08:41:19 -05:00 committed by GitHub
commit 20a099200d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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",