![docker for windows vs minikube docker for windows vs minikube](https://technology.amis.nl/wp-content/uploads/2019/02/lameriks_201902_1.jpg)
curl .local:5000/v2/_catalogĬonfigure the docker daemon with an insecure registy at .local:5000.
![docker for windows vs minikube docker for windows vs minikube](https://blog.mimacom.com/en/media/0e95911abb0bd2406f583074fba36ce6/kubernetes_schema.png)
Validate that the registry at .local:5000 is reachable from your development machine. docker psĬONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMESĠ2ea46d51f58 registry:2 "/entrypoint.sh /etc…" About an hour ago Up About a minute 0.0.0.0:5000->5000/tcp sharp_pike Path c:\Windows\System32\Drivers\etc\hosts ` In Windows PowerShell running as Administrator Add-Content ` On macOS the file should look something like this.
![docker for windows vs minikube docker for windows vs minikube](https://d33wubrfki0l68.cloudfront.net/f6ca806d37d71aa10b47d021cdb25a8c0849a9a9/322e1/images/blog/2020-05-21-wsl2-dockerdesktop-k8s/wsl2-minikube-install.png)
In Windows PowerShell (after enabling Shared Drives for drive C: in your Docker settings) docker run -d -p 5000:5000 -restart=always -volume c:/Users/$env:UserName/.registry/storage:/var/lib/registry registry:2Įdit the /etc/hosts file on your development machine, adding the name .local on the same line as the entry for localhost. docker run -d -p 5000:5000 -restart=always -volume ~/.registry/storage:/var/lib/registry registry:2 Use the docker CLI to run the registry:2 container from Docker, listening on port 5000, and persisting images in the ~/.registry/storage directory. Since PFS installations require a container registry, these instructions include running a local registry accessible from Kubernetes as well as from the host development machine at .local:5000.
#DOCKER FOR WINDOWS VS MINIKUBE HOW TO#
This topic describes how to install Pivotal Function Service (PFS) on a development machine using minikube for macOS or Windows or Linux.