Created
December 3, 2021 03:30
-
-
Save dictcp/89e2083a405c666c55316439a971fc4d to your computer and use it in GitHub Desktop.
Replace Docker for Mac with colima
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brew install lima colima | |
colima start --cpu 2 --memory 4 --disk 60 | |
# create new context to test colima | |
# with persisted setting like DOCKER_HOST=unix://$HOME/.colima/docker.sock | |
docker context create colima --docker host=unix://$HOME/.colima/docker.sock | |
docker context use colima | |
docker version | grep ubuntu | |
# the command should give you some output like this (since it is ubuntu based) | |
# Git commit: 20.10.7-0ubuntu1~21.04.2 | |
# Version: 1.5.2-0ubuntu1~21.04.3 | |
# Version: 1.0.0~rc95-0ubuntu1~21.04.2 | |
# let's have a test | |
docker run --rm -it ubuntu:20.04 | |
# to have debug in the Linux VMs | |
colima ssh | |
# To remove docker for mac and replace it with docker client utils | |
# WARN: only do so when you know what you are doing + you have tested the new environment properly | |
brew remove --cask docker | |
brew install docker | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment