...

/

Exploring minikube Commands

Exploring minikube Commands

Learn about some other useful minikube commands.

Checking the environment variables

Another useful minikube command to output the environment variables is docker-env:

Press + to interact
minikube docker-env

The output is as follows:

Press + to interact
export DOCKER_TLS_VERIFY="1"
export DOCKER_HOST="tcp://192.168.99.100:2376"
export DOCKER_CERT_PATH="/Users/educative/.minikube/certs"
export DOCKER_API_VERSION="1.23"
# Run this command to configure your shell:
# eval $(minikube docker-env)

If you have worked with Docker Machine, you’ll notice that the output is the same. Both docker-machine env and minikube docker-env serve the same purpose. They output the environment variables required for a local Docker client to communicate with a remote Docker server. In this case, that Docker server is the one inside a VM created by minikube.

Note : We assume that you already have Docker installed on your machine. If that’s not the case, please go to the Install Docker page and follow the instructions for your operating system.

Configuring the shell

Once Docker is installed, we can connect the client running on your machine with the ...

Access this course and 1400+ top-rated courses and projects.