abiosoft / colima

Container runtimes on macOS (and Linux) with minimal setup
MIT License
18.9k stars 382 forks source link

Rosetta-emulation not working #988

Closed jannetak closed 7 months ago

jannetak commented 7 months ago

Description

I'm building Docker images using docker-buildx with following command: _docker-buildx build --platform linux/amd64 --tag image_name:latest --build-arg GITCOMMIT=$(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: _imagename 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: 9ed7f4337861931b4d0192ca5409683a4b7d1cdc limactl version 0.20.1 qemu-img: unrecognized option '--version.'

Operating System

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

1. 2. 3.

Expected behaviour

No response

Additional context

No response

1ikeadragon commented 2 months ago

Hi @jannetak did you find a fix?