From 03cf3aa168068d3fe838dbd97371ac8a771c7c12 Mon Sep 17 00:00:00 2001 From: stevenhorsman Date: Fri, 15 Oct 2021 15:04:31 +0100 Subject: [PATCH] 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 --- src/agent/src/rpc.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/agent/src/rpc.rs b/src/agent/src/rpc.rs index 506910218b..0f551d437b 100644 --- a/src/agent/src/rpc.rs +++ b/src/agent/src/rpc.rs @@ -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)