Skip to content

Instantly share code, notes, and snippets.

@anuragmathur1
Created October 13, 2019 08:02
Show Gist options
  • Save anuragmathur1/61b2c57f83cefc19616ee346b00bd671 to your computer and use it in GitHub Desktop.
Save anuragmathur1/61b2c57f83cefc19616ee346b00bd671 to your computer and use it in GitHub Desktop.
## This is useful in case when you want your local docker to point to the minikube VM.
## So after running the below commands, you docker commands will return from the minikube vm.
## `docker images` will no longer report images on your local mac workstation but the images on the minikube VM.
## you may just run the eval command as in the last line to do all at once.
export DOCKER_TLS_VERIFY="1"
export DOCKER_HOST="tcp://192.168.99.106:2376"
export DOCKER_CERT_PATH="/Users/anurag.mathur/.minikube/certs"
# Run this command to configure your shell:
# eval $(minikube docker-env)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment