Sitelet https://github.com/leoj3n/docker.github.io/commit/e10661bb8b13cea714ec8ad2913eaebd96a4c6da
Skip to content

Commit e10661b

Browse files
Net Gustojoaofnfernandes
authored andcommitted
Go code: ImagePull: repository name must be canonical
If name given to imagePull is not canonical (see here for a description of a "canonical" name : https://github.com/docker/distribution/blob/245ca46/reference/normalize.go#L19-L23 ), the Go example panics : `repository name must be canonical`
1 parent b6ea27d commit e10661b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎engine/api/index.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ As an example, the `docker run` command can be easily implemented in various pro
5656
panic(err)
5757
}
5858

59-
_, err = cli.ImagePull(ctx, "alpine", types.ImagePullOptions{})
59+
_, err = cli.ImagePull(ctx, "docker.io/library/alpine", types.ImagePullOptions{})
6060
if err != nil {
6161
panic(err)
6262
}

0 commit comments

Comments
 (0)