Sometimes you have an ARM chip, but the container image you want to use only runs on x86 processors.
I have a MacBook Pro (M-series, ARM architecture), but I also like running the Oracle Database adb-free container image. This is an awesome image for testing Oracle Database, because it includes most features of Oracle Autonomous Database and bundles Oracle REST Data Services (ORDS) as an all-in-one development package. And it’s free to use.
But, this image only runs on x86. Bummer.
Oh, wait, x86 container emulation is really easy now. Let’s fire up Rancher Desktop and run all of our ARM and x86 containers there.
After installing Rancher Desktop, we just need to enable QEMU or VZ emulation. This can be done in the Preferences -> Virtual Machine section of the Rancher Desktop UI:

Then, fire up your x86 container using the CLI or the Rancher Desktop UI.
I like CLIs, so here’s how to start the Oracle Database adb-free container from the docker CLI:
docker run -d \
-p 1521:1522 \
-p 1522:1522 \
-p 8443:8443 \
-p 27017:27017 \
-e WORKLOAD_TYPE='ATP' \
-e WALLET_PASSWORD=Welcome12345 \
-e ADMIN_PASSWORD=Welcome12345 \
--cap-add SYS_ADMIN \
--device /dev/fuse \
--name adb-free \
container-registry.oracle.com/database/adb-free:latest-23aiYour x86 containers will happily coexist with ARM containers. Here I have an instance of Oracle Database Free (ARM) and ADB-Free (x86) running simultaneously:

That’s it. Great overall experience from Rancher Desktop running x86 container images on an ARM machine!
If you want to learn more about running and developing with the Oracle Database ADB Free image, check out Run Oracle REST Data Services (ORDS) locally with Oracle Database Free.

Leave a Reply