Skip to content

Instantly share code, notes, and snippets.

@stiliajohny
Created November 11, 2021 10:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stiliajohny/e951cd81734d29231657ebc5f212df17 to your computer and use it in GitHub Desktop.
Save stiliajohny/e951cd81734d29231657ebc5f212df17 to your computer and use it in GitHub Desktop.
Docker via minicube
# Install hyperkit and minikube
brew install hyperkit
brew install minikube
# Install Docker CLI
brew install docker
brew install docker-compose
# Start minikube
minikube start --cpus 2 --disk-size 50g --memory 5000 --insecure-registry registry-1.docker.io
# Tell Docker CLI to talk to minikube's VM
eval $(minikube docker-env)
# Save IP to a hostname
echo "`minikube ip` docker.local" | sudo tee -a /etc/hosts > /dev/null
# Test
docker run hello-world
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment