Use Minikube as Docker environment

Minikube is a common alternative to Docker Desktop. Instead of graphical user interfaces in Docker Desktop or Rancher Desktop, you need to start minikube with shell and configure environment variables before calling Docker.

After installing minikube according to this article, launch it with command below.

minikube start

After that, you need to configure environment variables needed by Minikube. MacOS users can use command below to set these variables.

eval $(minikube -p minikube docker-env)

Then use pyodps-pack to pack in current shell. If you want to pack under new shells, you might need to configure environment variables again.

Windows users might need to use HyperV as default VM driver, see this document for more details.

minikube start --driver=hyperv

Then you need to configure environment variables for your shell. If you are using CMD, you can use command below.

@FOR /f "tokens=*" %i IN ('minikube -p minikube docker-env --shell cmd') DO @%i

If you are using Powershell, you can use command below.

& minikube -p minikube docker-env --shell powershell | Invoke-Expression

Please take a look at minikube documents for more details about Minikube.