mirror of
https://github.com/clearlinux/rkt.git
synced 2026-09-01 11:26:05 +00:00
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:
+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