Logo

dev-resources.site

for different kinds of informations.

How to migrate from Docker Desktop to Colima on a Mac M1

Published at
3/25/2023
Categories
docker
colima
tutorial
opensource
Author
luizkowalski
Categories
4 categories in total
docker
open
colima
open
tutorial
open
opensource
open
Author
12 person written this
luizkowalski
open
How to migrate from Docker Desktop to Colima on a Mac M1

Recently, I've been trying to move away from Docker Desktop for Mac and I think I finally got it working so here is what I did:

  1. Uninstall Docker Desktop
  2. Delete ~/.docker/config.json (Don't worry, Colima will recreate it correctly)
  3. Install docker-cli with Homebrew
brew install --formula docker
Enter fullscreen mode Exit fullscreen mode
  1. Install colima
brew install colima
Enter fullscreen mode Exit fullscreen mode
  1. Setup a VM
colima start -a x86_64
Enter fullscreen mode Exit fullscreen mode

You are only gonna need to run start with options this time, next time, colima start is enough.

  1. Install BuildKit for Mac with the following script
#!/bin/bash

ARCH=arm64
VERSION=v0.10.4
curl -LO https://github.com/docker/buildx/releases/download/${VERSION}/buildx-${VERSION}.darwin-${ARCH}
mkdir -p ~/.docker/cli-plugins
mv buildx-${VERSION}.darwin-${ARCH} ~/.docker/cli-plugins/docker-buildx
chmod +x ~/.docker/cli-plugins/docker-buildx
docker buildx version
Enter fullscreen mode Exit fullscreen mode

And that's it 🎉

Featured ones: