Run minikube docker-env in a shell-independent way (#18823)

This commit is contained in:
Trishank Karthik Kuppusamy
2020-01-29 16:18:13 -05:00
committed by GitHub
parent d01be3a3f2
commit 45dd7d107a
@@ -263,11 +263,7 @@ When using a single VM for Kubernetes, it's useful to reuse Minikube's built-in
Be sure to tag your Docker image with something other than latest and use that tag to pull the image. Because `:latest` is the default value, with a corresponding default image pull policy of `Always`, an image pull error (`ErrImagePull`) eventually results if you do not have the Docker image in the default Docker registry (usually DockerHub). Be sure to tag your Docker image with something other than latest and use that tag to pull the image. Because `:latest` is the default value, with a corresponding default image pull policy of `Always`, an image pull error (`ErrImagePull`) eventually results if you do not have the Docker image in the default Docker registry (usually DockerHub).
{{< /note >}} {{< /note >}}
To work with the Docker daemon on your Mac/Linux host, use the `docker-env command` in your shell: To work with the Docker daemon on your Mac/Linux host, run the last line from `minikube docker-env`.
```shell
eval $(minikube docker-env)
```
You can now use Docker at the command line of your host Mac/Linux machine to communicate with the Docker daemon inside the Minikube VM: You can now use Docker at the command line of your host Mac/Linux machine to communicate with the Docker daemon inside the Minikube VM: