Created
February 1, 2022 10:12
-
-
Save mmbakker/c4bbc00758498455b12f8aa81ec85ffe to your computer and use it in GitHub Desktop.
Setup Docker Desktop alternative on Mac OS X using Colima
This file contains 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
# Prerequisites: Homebrew | |
# 1. Install the docker binary using homebrew | |
brew install docker | |
# 2. Install colima (the order is important since colima will automatically make configurations). | |
brew install colima | |
# 3. Start colima (start colima for the first time and let it download and | |
# configure its dependencies; this will effectively setup, configure, and | |
# boot a local, working kubernetes cluster.) | |
colima start --with-kubernetes | |
# 4. Happy running! You should now be able to run your images on this | |
# cluster. The docker binary should already be configured at this | |
# point, so try it out: | |
docker container run hello-world | |
# $ docker container run hello-world | |
# | |
# Unable to find image 'hello-world:latest' locally | |
# latest: Pulling from library/hello-world | |
# 2db29710123e: Pull complete | |
# Digest: sha256:507ecde44b8eb741278274653120c2bf793b174c06ff4eaa672b713b3263477b | |
# Status: Downloaded newer image for hello-world:latest | |
# | |
# Hello from Docker! | |
# This message shows that your installation appears to be working correctly. | |
# | |
# To generate this message, Docker took the following steps: | |
# 1. The Docker client contacted the Docker daemon. | |
# 2. The Docker daemon pulled the "hello-world" image from the Docker Hub. | |
# (amd64) | |
# 3. The Docker daemon created a new container from that image which runs the | |
# executable that produces the output you are currently reading. | |
# 4. The Docker daemon streamed that output to the Docker client, which sent it | |
# to your terminal. | |
# | |
# To try something more ambitious, you can run an Ubuntu container with: | |
# $ docker run -it ubuntu bash | |
# | |
# Share images, automate workflows, and more with a free Docker ID: | |
# https://hub.docker.com/ | |
# | |
# For more examples and ideas, visit: | |
# https://docs.docker.com/get-started/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
--with-kubernetes
is optional, it also works without k8s.