From e10661bb8b13cea714ec8ad2913eaebd96a4c6da Mon Sep 17 00:00:00 2001 From: Net Gusto Date: Fri, 10 Mar 2017 22:45:35 +0100 Subject: [PATCH] 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` --- engine/api/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/api/index.md b/engine/api/index.md index de1450318f..87332b5fc1 100644 --- a/engine/api/index.md +++ b/engine/api/index.md @@ -56,7 +56,7 @@ As an example, the `docker run` command can be easily implemented in various pro panic(err) } - _, err = cli.ImagePull(ctx, "alpine", types.ImagePullOptions{}) + _, err = cli.ImagePull(ctx, "docker.io/library/alpine", types.ImagePullOptions{}) if err != nil { panic(err) }