add possibility to download to OCI image-layout

- vendor containers/image c703326038d30c3422168dd9a1a5afaf51740331
- fix copy tests relying on v2s1 manifests

Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
Antonio Murdaca
2016-06-29 23:42:04 +02:00
parent 891c46ed59
commit 6942920ee8
14 changed files with 263 additions and 28 deletions

View File

@@ -23,7 +23,7 @@ func NewDockerImage(img, certPath string, tlsVerify bool) (types.Image, error) {
if err != nil {
return nil, err
}
return &Image{Image: image.FromSource(s), src: s}, nil
return &Image{Image: image.FromSource(s, nil), src: s}, nil
}
// SourceRefFullName returns a fully expanded name for the repository this image is in.