mirror of
https://github.com/clearlinux/rkt.git
synced 2026-09-04 21:01:36 +00:00
Merge pull request #526 from jonboulle/insec
fetch: require -insecure-skip-verify for Docker images
This commit is contained in:
+2
-3
@@ -114,9 +114,8 @@ func downloadImage(rem *cas.Remote, ds *cas.Store, ks *keystore.Keystore) (strin
|
||||
stdout("rkt: fetching image from %s", rem.ACIURL)
|
||||
if globalFlags.InsecureSkipVerify {
|
||||
stdout("rkt: warning: signature verification has been disabled")
|
||||
}
|
||||
if rem.Scheme == "docker" {
|
||||
fmt.Printf("rkt: warning: signature verification for docker images is not supported\n")
|
||||
} else if rem.Scheme == "docker" {
|
||||
return "", fmt.Errorf("signature verification for docker images is not supported (try --insecure-skip-verify)")
|
||||
}
|
||||
err := ds.ReadIndex(rem)
|
||||
if err != nil && rem.BlobKey == "" {
|
||||
|
||||
Reference in New Issue
Block a user