Created
November 11, 2021 10:31
-
-
Save stiliajohny/e951cd81734d29231657ebc5f212df17 to your computer and use it in GitHub Desktop.
Docker via minicube
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
# 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