fetch: require -insecure-skip-verify for Docker images

Unfortunately since Docker images do not support signature verification,
we can't enable it for them. To make things explicit, require users to
provide the -insecure-skip-verify flag to work with Docker images.
This commit is contained in:
Jonathan Boulle
2015-02-13 09:36:26 -08:00
parent 17a3e8e8a7
commit 8dcf1b8938
+2 -3
View File
@@ -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 == "" {