Docker `--platform` flag does not appear to be working
- Ngôn ngữ chính
- Go
- Star
- 30.8k
- Fork
- 613
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
### Description
Whenever I try to run a `linux/amd64` container or build an image, I get an `exec format error` message:
```console
❯ docker run --platform linux/amd64 ubuntu:latest uname -a
Unable to find image 'ubuntu:latest' locally
latest: Pulling from library/ubuntu
Digest: sha256:6042500cf4b44023ea1894effe7890666b0c5c7871ed83a97c36c76ae560bb9b
Status: Downloaded newer image for ubuntu:latest
exec /usr/bin/uname: exec format error
```
### Version
colima version 0.6.7
git commit: ba1be00e9aec47f2c1ffdacfb7e428e465f0b58a
runtime: docker
arch: aarch64
client: v24.0.7
server: v24.0.7
limactl version 0.19.1
qemu-img version 8.1.3
Copyright (c) 2003-2023 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[0000] colima is running using macOS Virtualization.Framework
INFO[0000] arch: aarch64
INFO[0000] runtime: docker
INFO[0000] mountType: virtiofs
INFO[0000] socket: unix:///Users/andyfreeland/.colima/default/docker.sock
### Reproduction Steps
1. On an Apple Silicon Mac, run `docker run --platform linux/amd64 ubuntu:latest uname -a`.
### Expected behaviour
The image builds/container runs correctly.
### Additional context
I think this started happening after lima was upgraded to 0.19.1, but I'm not positive.
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.