OraMatt: YABAOracle

Yet Another Blog About Oracle

Running Docker on a M2 MacBook

I’ve had relative success running Docker x86-64 containers on my M2 MacBook with the following procedure:

Run docker on Apple Silcon with hacks

Prerequisite

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Install Steps

  1. brew install docker
  2. brew install docker-compose
  3. brew install lima
  4. brew install colima
  5. brew reinstall qemu

Single Command

brew install docker; brew install docker-compose; brew install lima; brew install colima; brew reinstall qemu; brew reinstall -f --force-bottle qemu

Start CoLiMa

  1. colima start –cpu 8 –memory 20 –arch x86_64

Pull a container

docker run -d -p 1521:1521 -p 5902:5902 -p 5500:5500 -p 8080:8080 -it --name Oracle_DBFREE_Container container-registry.oracle.com/database/free

Stop CoLiMa

  1. colima stop

Uninstall Steps

  1. brew remove docker
  2. brew remove docker-compose
  3. brew remove lima
  4. brew remove colima
  5. brew remove qemu

Single Command

brew remove docker; brew remove docker-compose; brew remove lima; brew uninstall --ignore-dependencies lima; brew remove colima; brew reinstall -f --force-bottle qemu

Leave a comment

Navigation

About

I’m Matt and I do Oracle things.