mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-06 13:41:36 +00:00
Merge pull request #12655 from jlhawn/fix_12281
Validate repo name before image pull
This commit is contained in:
@@ -40,6 +40,10 @@ func (s *TagStore) Pull(image string, tag string, imagePullConfig *ImagePullConf
|
||||
return err
|
||||
}
|
||||
|
||||
if err := validateRepoName(repoInfo.LocalName); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
c, err := s.poolAdd("pull", utils.ImageReference(repoInfo.LocalName, tag))
|
||||
if err != nil {
|
||||
if c != nil {
|
||||
|
||||
Reference in New Issue
Block a user