forked from TrueCloudLab/distribution
Cereate a new registry object for each request (~session)
This commit is contained in:
parent
aa1796915d
commit
2312a0e491
1 changed files with 3 additions and 0 deletions
|
@ -330,6 +330,9 @@ func (r *Registry) PushImageJsonIndex(remote string, imgList []*ImgData, validat
|
|||
if validate {
|
||||
suffix = "images"
|
||||
}
|
||||
|
||||
utils.Debugf("Image list pushed to index:\n%s\n", imgListJson)
|
||||
|
||||
req, err := http.NewRequest("PUT", auth.IndexServerAddress()+"/repositories/"+remote+"/"+suffix, bytes.NewReader(imgListJson))
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
Loading…
Reference in a new issue