run kubernetes minikube in a vm or in a linux docker host

run kubernetes minikube in a vm or in a linux docker host

in a vm

in a linux docker host

Minikube also supports a --vm-driver=none option that runs the Kubernetes components on the host and not in a VM. Using this driver requires Docker and a Linux environment but not a hypervisor.

# aptitude install docker.io

then

$ minikube start --vm-driver=none

๐Ÿ˜„  minikube v0.35.0 on linux (amd64)
๐Ÿคน  Configuring local host environment ...

โš ๏ธ  The 'none' driver provides limited isolation and may reduce system security and reliability.
โš ๏ธ  For more information, see:
๐Ÿ‘‰  https://github.com/kubernetes/minikube/blob/master/docs/vmdriver-none.md

โš ๏ธ  kubectl and minikube configuration will be stored in /root
โš ๏ธ  To use kubectl or minikube commands as your own user, you may
โš ๏ธ  need to relocate them. For example, to overwrite your own settings:

    โ–ช sudo mv /root/.kube /root/.minikube $HOME
    โ–ช sudo chown -R $USER $HOME/.kube $HOME/.minikube

๐Ÿ’ก  This can also be done automatically by setting the env var CHANGE_MINIKUBE_NONE_USER=true
๐Ÿ”ฅ  Creating none VM (CPUs=2, Memory=2048MB, Disk=20000MB) ...
๐Ÿ“ถ  "minikube" IP address is 10.0.2.15
๐Ÿณ  Configuring Docker as the container runtime ...
โœจ  Preparing Kubernetes environment ...
๐Ÿ’พ  Downloading kubeadm v1.13.4
๐Ÿ’พ  Downloading kubelet v1.13.4
๐Ÿšœ  Pulling images required by Kubernetes v1.13.4 ...

see also