5 ms·
Why does minikube use a VM layer on Linux? Is it just for flexibility and not using the local docker daemon?
by JustinGarrison 10y ago
Why does minikube use a VM layer on Linux? Is it just for flexibility and not using the local docker daemon?
- dlor 10y agoWe mainly use the VM to provide a well-known and tested environment for Kubernetes to run in. Running inside a Docker container on Linux would have similar benefits, but there are still a few bugs with running some of the Kubernetes components inside containers. We'll probably add a "native" option for Linux at some point. See this issue: https://github.com/kubernetes/minikube/issues/261 https://github.com/kubernetes/minikube/issues/261 for a little more conversation. Disclosure: I work at Google, on Minikube.
- NetStrikeForce 10y agoThis is very cool, finally I don't need a datacentre to test some things :) thanks!
- moosingin3space 10y agoI don't know if this is why, but when I work with Docker on Linux, I prefer to use docker-machine's VM layer because that way, I don't need to run docker commands as root.
- JustinGarrison 10y agoMy only complaint with the VM layer is it's harder to have faster iterations with local development. I know this isn't the documented way to develop with kubernetes but I often use containers with -v $PWD:/app to test things interactively
- moosingin3space 10y agoAhh, now that makes sense. I don't usually develop inside a container, so that's why I haven't had this issue before.
- hosh 10y agoThat's how I usually work with my code on local development.