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:
stevenhorsman
2021-10-15 15:04:31 +01:00
parent c624e7fd97
commit 03cf3aa168

View File

@@ -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)