-
On an Apple Silicon Mac, since Oracle can only run in x86_64 mode, I have no choice but to do so. However, the application I try to run is just too slow under emulation, so I'd like to run it in native aarch64 mode instead, and have it connect to the Oracle container in x86_64 mode through an exposed port. Is this possible? My first assumption is not because it seems like there can only be one active Docker context at one time. Granted, I'm still not that familiar with Docker, and especially not with Colima, so maybe I'm wrong and there's a chance. Kindly help with an answer or some advice how to best handle said scenario. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
@wzxu are you having actual success running your Oracle images in x68_64 mode? Is it reliable? Is the performance even slightly tolerable? I'm interested because I always just say "no" to people who want to run amd64 images on arm64 with Colima or Docker Desktop. |
Beta Was this translation helpful? Give feedback.
-
You can run both at the same time if
Judging from your explanation, it appears you need to run Colima in emulation mode and that would not work. Except you would have multiple Colima profiles (and docker contexts) and toggle between them. colima start # native
colima start --arch x86_64 intel # emulated
docker context use colima # switch to native context
docker context use colima-intel # switch to emulated
# you can also export DOCKER_HOST in your active shell
# socket path can be checked with `colima status`
export DOCKER_HOST=$HOME/.colima/default/docker.sock If your primary need is communication across ports, then yes, anything available on the host is accessible via the |
Beta Was this translation helpful? Give feedback.
You can run both at the same time if
--platform
flag todocker run
for cross architecture images.Judging from your explanation, it appears you need to run Colima in emulation mode and that would not work. Except you would have multiple Colima profiles (and docker contexts) and toggle between them.