Rosetta-emulation not working
jannetak opened this issue · comments
Description
I'm building Docker images using docker-buildx with following command:
docker-buildx build --platform linux/amd64 --tag image_name:latest --build-arg GIT_COMMIT=$(git log -1 --format=%h) -f Dockerfile --no-cache --load .
By running command docker inspect I get following response:
"Architecture": "amd64",
"Os": "linux",
I start Colima with command:
colima start --profile rosetta --cpu 2 --memory 6 --arch aarch64 --vm-type=vz --vz-rosetta and docker context use colima-rosetta
When Docker container is created, I got following message on startup:
image_name The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
When I go to container using docker exec -it xxx /bin/bash and run my application, I got following response:
Illegal instruction (core dumped)
Version
colima version 0.6.6
git commit: 9ed7f43
limactl version 0.20.1
qemu-img: unrecognized option '--version.'
Operating System
- macOS Intel <= 13 (Ventura)
- macOS Intel >= 14 (Sonoma)
- Apple Silicon <= 13 (Ventura)
- Apple Silicon >= 14 (Sonoma)
- Linux
Output of colima status
INFO[0000] colima is running using QEMU
INFO[0000] arch: aarch64
INFO[0000] runtime: docker
INFO[0000] mountType: sshfs
INFO[0000] socket: unix:///Users/profile_name/.colima/default/docker.sock
Reproduction Steps
Expected behaviour
No response
Additional context
No response