docker - How to start minikube? -
i installed minikube
on linux box lubuntu 16.04 on thinkpad x201i.
here complete install steps:
download , install minikube server cd programs/install/bin curl -lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64; chmod +x minikube; download , install kubectl client cd programs/install/bin curl -lo kubectl https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl chmod +x kubectl; install libraries libvirt , qemu-kvm sudo apt-get install libvirt-bin qemu-kvm (note: ubuntu 17.04 change group libvirt) sudo usermod -a -g libvirtd $(whoami) newgrp libvirtd install docker machine cd /home/stephane/programs/install/bin curl -l https://github.com/docker/machine/releases/download/v0.12.2/docker-machine-`uname -s`-`uname -m` > docker-machine; chmod +x docker-machine install kvm driver docker machine cd /home/stephane/programs/install/bin curl -l https://github.com/dhiltgen/docker-machine-kvm/releases/download/v0.10.0/docker-machine-driver-kvm-ubuntu16.04 > docker-machine-driver-kvm; chmod +x docker-machine-driver-kvm
on system reboot, cluster seems started:
$ kubectl cluster-info kubernetes master running @ http://localhost:8080 $ minikube ip $
i'm surprised that, since did not create service start.
and if started, why there no ip ?
i looked in /etc/init.d/
directory:
$ ll -t /etc/init.d/*virt* -rwxr-xr-x 1 root 17k août 23 14:47 /etc/init.d/libvirt-guests* -rwxr-xr-x 1 root 5,9k août 11 07:50 /etc/init.d/libvirt-bin* -rwxr-xr-x 1 root 4,0k août 11 07:50 /etc/init.d/virtlockd* -rwxr-xr-x 1 root 3,9k août 11 07:50 /etc/init.d/virtlogd* $ ll -t /etc/init.d/docker -rwxr-xr-x 1 root 3,8k mai 4 23:36 /etc/init.d/docker*
it can't docker deamon starts minikube
there no image in docker:
$ docker ps -a container id image command created status ports names
at first, thinking of manually starting it.
but when so, shows attempt start, fails looks image not exist:
$ minikube start --vm-driver kvm starting local kubernetes v1.7.5 cluster... starting vm... e0912 18:23:37.989448 24423 start.go:143] error starting host: error starting stopped host: virerror(code=38, domain=18, message='cannot access storage file '/root/.minikube/machines/minikube/boot2docker.iso' (as uid:64055, gid:129): aucun fichier ou dossier de ce type').
i configured bios , enabled virtualization , have accelaration enabled:
$ sudo /usr/sbin/kvm-ok info: /dev/kvm exists kvm acceleration can used
i admit installed libraries in non standard directory location: /home/stephane/programs/install/bin
some output different commands:
$ egrep -c '(vmx|svm)' /proc/cpuinfo 4 $ virsh list --all id nom État ----------------------------------------------------
it still says running:
$ kubectl cluster-info kubernetes master running @ http://localhost:8080
although cannot connect:
$ kubectl cluster-info dump connection server localhost:8080 refused - did specify right host or port?
why these last 2 similar commands, giving such opposite signal ?
update: typed in rm -rf ~/.minikube/cache
command followed minikube start --vm-driver kvm
command few times, , today seemed work:
$ minikube start --vm-driver kvm starting local kubernetes v1.7.5 cluster... starting vm... downloading minikube iso 106.36 mb / 106.36 mb [============================================] 100.00% 0s getting vm ip address... moving files cluster... setting certs... connecting cluster... setting kubeconfig... starting cluster components... kubectl configured use cluster. $ minikube ip 192.168.42.196
have containers running on docker daemon (docker ps), kubernetes running there.
i never tested minikube on linux i'm not sure, on windows, runs containers inside linux vm.
regards, thibault
Comments
Post a Comment