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`
This commit is contained in:
Net Gusto 2017-03-10 22:45:35 +01:00 committed by Joao Fernandes
parent b6ea27dfa6
commit e10661bb8b
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}