I currently use colima on my M2 mac to run docker containers that are x86 architecture-only (like the Oracle Free 23c image).
I have two VMs configured in colima:
$ colima start x86
...
$ docker run ...
$ colima list
PROFILE STATUS ARCH CPUS MEMORY DISK RUNTIME ADDRESS
default Stopped aarch64 2 2GiB 60GiB
x86 Running x86_64 2 4GiB 60GiB docker
$ docker exec containerid bash -c "uname -a"
Linux 84a459c225c8 6.5.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan 9 17:03:36 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
Question:
- Is it possible to run a
aarch64
docker image at the same time that I run ax86
image? - If so I guess I need to start the colima/qemu aarch64 VM along the x86 VM?
- Using the
docker run
command, how can I specify which runtime to use for a container?
Is the above scenario supported on colima/docker?