Skip to content

Commit 82fe79d

Browse files
committed
Fix precheck Docker image pull on Apple Silicon
The mpw_precheck image is amd64-only. Add --platform linux/amd64 to docker pull and docker run so it works on ARM Macs via Rosetta. Made-with: Cursor
1 parent 0069a45 commit 82fe79d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

chipfoundry_cli/main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3330,6 +3330,7 @@ def precheck(project_root, skip_checks, magic_drc, checks, dry_run):
33303330

33313331
docker_cmd = [
33323332
'docker', 'run', '--rm', '--init',
3333+
'--platform', 'linux/amd64',
33333334
'-v', f'{project_root_path}:{project_root_path}',
33343335
'-v', f'{pdk_root}:{pdk_root}',
33353336
'-e', f'PDK_ROOT={pdk_root}',
@@ -3360,7 +3361,7 @@ def precheck(project_root, skip_checks, magic_drc, checks, dry_run):
33603361
console.print(f"[cyan]Checking for Docker image updates...[/cyan]")
33613362
try:
33623363
subprocess.run(
3363-
['docker', 'pull', docker_image],
3364+
['docker', 'pull', '--platform', 'linux/amd64', docker_image],
33643365
check=True,
33653366
capture_output=True,
33663367
)

0 commit comments

Comments
 (0)