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