From 762a74f5f9996d3f10cc2f5d1644a820b39120fb Mon Sep 17 00:00:00 2001 From: Peter Storch Date: Mon, 6 Oct 2025 20:10:09 +0200 Subject: [PATCH] fix(containers): Docker update fails on M Macs due to platform / (#1360) Suppresses the `--platform` parameter to docker pull if platform is only '/'. fixes #1154 --- src/steps/containers.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/steps/containers.rs b/src/steps/containers.rs index 2de1e73a..daeb0b00 100644 --- a/src/steps/containers.rs +++ b/src/steps/containers.rs @@ -142,12 +142,12 @@ pub fn run_containers(ctx: &ExecutionContext) -> Result<()> { for container in &containers { debug!("Pulling container '{}'", container); - let args = vec![ - "pull", - container.repo_tag.as_str(), - "--platform", - container.platform.as_str(), - ]; + let mut args = vec!["pull", container.repo_tag.as_str()]; + if container.platform.as_str() != "/" { + args.push("--platform"); + args.push(container.platform.as_str()); + } + let mut exec = ctx.execute(&crt); if let Err(e) = exec.args(&args).status_checked() {