Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a011828

Browse files
rremerMisty Stanley-Jones
authored andcommitted
fix imports since docker api pkg migration, fix example repository name to be canonical (docker#2806)
1 parent 52dfdd5 commit a011828

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

engine/api/get-started.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ import (
107107
"io"
108108
"os"
109109

110-
"github.com/docker/engine-api/client"
111-
"github.com/docker/engine-api/types"
112-
"github.com/docker/engine-api/types/container"
110+
"github.com/docker/docker/client"
111+
"github.com/docker/docker/api/types"
112+
"github.com/docker/docker/api/types/container"
113113
"golang.org/x/net/context"
114114
)
115115

@@ -120,7 +120,7 @@ func main() {
120120
panic(err)
121121
}
122122

123-
_, err = cli.ImagePull(ctx, "alpine", types.ImagePullOptions{})
123+
_, err = cli.ImagePull(ctx, "docker.io/library/alpine", types.ImagePullOptions{})
124124
if err != nil {
125125
panic(err)
126126
}

0 commit comments

Comments
 (0)