colima icon indicating copy to clipboard operation
colima copied to clipboard

amd64 emulation doesn't work on aarch64 on restarts

Open p1729 opened this issue 3 months ago • 1 comments

Description

I have seen that amd64 images running on colima with aarch64 with vz. However, on restarts somehow its looses the amd64 emulation support and the containers fails with error exec /docker-entrypoint.sh: exec format error. Upon adding the amd64 emulation using docker run --rm --privileged tonistiigi/binfmt --install amd64 the containers run again.

Version

colima version 0.8.2 git commit: 798f8ef9a3a9b6b641687027988f2cd4ea2c2f92

runtime: docker arch: aarch64 client: v28.3.3 server: v28.3.3 limactl version 1.2.1 qemu-img version 10.0.2 Copyright (c) 2003-2025 Fabrice Bellard and the QEMU Project developers

Operating System

  • [ ] macOS Intel <= 13 (Ventura)
  • [ ] macOS Intel >= 14 (Sonoma)
  • [ ] Apple Silicon <= 13 (Ventura)
  • [x] Apple Silicon >= 14 (Sonoma)
  • [ ] Linux

Output of colima status

INFO[0001] colima is running using macOS Virtualization.Framework INFO[0001] arch: aarch64 INFO[0001] runtime: docker INFO[0001] mountType: virtiofs INFO[0001] socket: unix:///Users/p1729/.colima/default/docker.sock

Reproduction Steps

  1. Run amd64 phpmyadmin image on colima with aarch64 and vz and run the container
  2. Restart host machine
  3. Start the same container again

Expected behaviour

The container should start again

Additional context

No response

p1729 avatar Sep 02 '25 13:09 p1729