mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-31 16:36:38 +00:00
agent: update base rootfs to be ubuntu
- Add skopeo --insecure-policy tag to reflect that ubuntu doesn't create a default container policy Fixes #2849 Signed-off-by: stevenhorsman <steven@uk.ibm.com>
This commit is contained in:
@@ -1740,6 +1740,7 @@ fn pull_image_from_registry(image: &str, cid: &str, source_creds: &Option<&str>)
|
||||
|
||||
let mut pull_command = Command::new(SKOPEO_PATH);
|
||||
pull_command
|
||||
.arg("--insecure-policy")
|
||||
.arg("copy")
|
||||
.arg(source_image)
|
||||
.arg(&target_path_manifest);
|
||||
@@ -1758,6 +1759,7 @@ fn pull_image_from_registry(image: &str, cid: &str, source_creds: &Option<&str>)
|
||||
// Resulting image is still stored in manifest format, but no longer includes the signature
|
||||
// The image with a signature can then be unpacked into a bundle
|
||||
let status: ExitStatus = Command::new(SKOPEO_PATH)
|
||||
.arg("--insecure-policy")
|
||||
.arg("copy")
|
||||
.arg(&target_path_manifest)
|
||||
.arg(&target_path_oci)
|
||||
|
Reference in New Issue
Block a user