Skip to content

Commit

Permalink
Merge pull request moby#6 from miminar/1.4.1-beta2
Browse files Browse the repository at this point in the history
Fix tagging issue
  • Loading branch information
rhatdan committed Jan 30, 2015
2 parents b024f0f + 079cd99 commit d26b358
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions graph/tags.go
Expand Up @@ -222,6 +222,11 @@ func (store *TagStore) Set(repoName, tag, imageName string, force bool) error {
return err
}
var repo Repository
// Do not default to the first additional registry if we deal with an image
// from the official one which will be missing a hostname.
if !registry.RepositoryNameHasIndex(repoName) && registry.IndexServerName() != registry.INDEXSERVER {
repoName = fmt.Sprintf("%s/%s", registry.INDEXNAME, repoName)
}
repoName = registry.NormalizeLocalName(repoName)
if r, exists := store.Repositories[repoName]; exists {
repo = r
Expand Down

0 comments on commit d26b358

Please sign in to comment.