kubernetes / minikube

Run Kubernetes locally
https://minikube.sigs.k8s.io/
Apache License 2.0
29.19k stars 4.87k forks source link

minibuke start #9586

Closed chiehpower closed 3 years ago

chiehpower commented 3 years ago

Dear all,

I am sorry. I know my question is quite simple and basic that I am a beginner in kubernetes. I wonder whether my minikube correctly started? Because it seems printing something error but I dont know whether I need to care about those.

~ β€Ίβ€Ί minikube start                                                                                                                                                                                                
πŸ˜„  minikube v1.14.1 on Ubuntu 18.04
πŸŽ‰  minikube 1.14.2 is available! Download it: https://github.com/kubernetes/minikube/releases/tag/v1.14.2
πŸ’‘  To disable this notice, run: 'minikube config set WantUpdateNotification false'

✨  Automatically selected the docker driver
πŸ‘  Starting control plane node minikube in cluster minikube
πŸ”₯  Creating docker container (CPUs=2, Memory=8000MB) ...
βœ‹  Stopping node "minikube"  ...
πŸ›‘  Powering off "minikube" via SSH ...
πŸ”₯  Deleting "minikube" in docker ...
🀦  StartHost failed, but will try again: creating host: create: provisioning: ssh command error:
command : sudo hostname minikube && echo "minikube" | sudo tee /etc/hostname
err     : Process exited with status 1
output  : sudo: effective uid is not 0, is /usr/bin/sudo on a file system with the 'nosuid' option set or an NFS file system without root privileges?

πŸ”₯  Creating docker container (CPUs=2, Memory=8000MB) ...
😿  Failed to start docker container. Running "minikube delete" may fix it: creating host: create: provisioning: ssh command error:
command : sudo hostname minikube && echo "minikube" | sudo tee /etc/hostname
err     : Process exited with status 1
output  : sudo: effective uid is not 0, is /usr/bin/sudo on a file system with the 'nosuid' option set or an NFS file system without root privileges?

❗  Startup with docker driver failed, trying with alternate driver virtualbox: Failed to start host: creating host: create: provisioning: ssh command error:
command : sudo hostname minikube && echo "minikube" | sudo tee /etc/hostname
err     : Process exited with status 1
output  : sudo: effective uid is not 0, is /usr/bin/sudo on a file system with the 'nosuid' option set or an NFS file system without root privileges?

πŸ”₯  Deleting "minikube" in docker ...
πŸ”₯  Deleting container "minikube" ...
πŸ”₯  Removing /home/chieh/.minikube/machines/minikube ...
πŸ’€  Removed all traces of the "minikube" cluster.
πŸ‘  Starting control plane node minikube in cluster minikube
πŸ”₯  Creating virtualbox VM (CPUs=2, Memory=6000MB, Disk=20000MB) ...
🐳  Preparing Kubernetes v1.19.2 on Docker 19.03.12 ...
πŸ”Ž  Verifying Kubernetes components...
🌟  Enabled addons: storage-provisioner, default-storageclass
πŸ„  Done! kubectl is now configured to use "minikube" by default

Thank you so much.

Sincerely, Chieh

micos76 commented 3 years ago

I am not an expert either but seems like something is wrong with your Docker setup? So it basically failed back to use VirtualBox instead.

Was your intention to use Docker as the underlying VM? You can specify the driver (read the docs) to be VirtualBox or others - default is Docker.

hoantv commented 3 years ago

I have same problem. I use private registry.

minikube start --base-image='private-registry/k8s-minikube/kicbase:v0.0.13@sha256:4d43acbd0050148d4bc399931f1b15253b5e73815b63a67b8ab4a5c9e523403f' --alsologtostderr


I1104 14:53:28.822354  477384 out.go:192] Setting JSON to false
I1104 14:53:28.826967  477384 start.go:103] hostinfo: {"hostname":"minikube","uptime":13499298,"bootTime":1590977110,"procs":315,"os":"linux","platform":"centos","platformFamily":"rhel","platformVersion":"7.8.2003","kernelVersion":"3.10.0-957.27.2.el7.x86_64","virtualizationSystem":"","virtualizationRole":"","hostid":"d754e1e6-000e-4d12-a6a2-d35a058a8683"}
I1104 14:53:28.828787  477384 start.go:113] virtualization:  
I1104 14:53:29.476528  477384 out.go:110] * minikube v1.14.2 on Centos 7.8.2003
* minikube v1.14.2 on Centos 7.8.2003
I1104 14:53:29.477001  477384 notify.go:126] Checking for updates...
I1104 14:53:29.477311  477384 driver.go:288] Setting default libvirt URI to qemu:///system
I1104 14:53:29.477568  477384 global.go:102] Querying for installed drivers using PATH=/home/developer/.minikube/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/developer/.local/bin:/home/developer/bin
W1104 14:53:29.487158  477384 notify.go:57] Error getting json from minikube version url: error with http GET for endpoint https://storage.googleapis.com/minikube/releases.json: Get "https://storage.googleapis.com/minikube/releases.json": dial tcp: lookup storage.googleapis.com on 10.30.3.38:53: write udp 127.0.0.1:41407->10.30.3.38:53: write: operation not permitted
I1104 14:53:29.637446  477384 docker.go:117] docker version: linux-19.03.9
I1104 14:53:29.637667  477384 cli_runner.go:110] Run: docker system info --format "{{json .}}"
I1104 14:53:29.866910  477384 info.go:253] docker info: {ID:ETIH:5DQ2:FUS5:VD6N:E6O2:S64S:6XHH:46GQ:YRYP:ZH4Q:723T:CX4C Containers:0 ContainersRunning:0 ContainersPaused:0 ContainersStopped:0 Images:11 Driver:overlay2 DriverStatus:[[Backing Filesystem extfs] [Supports d_type true] [Native Overlay Diff true]] SystemStatus:<nil> Plugins:{Volume:[local] Network:[bridge host ipvlan macvlan null overlay] Authorization:<nil> Log:[awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog]} MemoryLimit:true SwapLimit:true KernelMemory:true KernelMemoryTCP:true CPUCfsPeriod:true CPUCfsQuota:true CPUShares:true CPUSet:true PidsLimit:true IPv4Forwarding:true BridgeNfIptables:false BridgeNfIP6Tables:false Debug:false NFd:21 OomKillDisable:true NGoroutines:34 SystemTime:2020-11-04 14:53:29.721682128 +0700 +07 LoggingDriver:json-file CgroupDriver:cgroupfs NEventsListener:0 KernelVersion:3.10.0-957.27.2.el7.x86_64 OperatingSystem:CentOS Linux 7 (Core) OSType:linux Architecture:x86_64 IndexServerAddress:https://index.docker.io/v1/ RegistryConfig:{AllowNondistributableArtifactsCIDRs:[] AllowNondistributableArtifactsHostnames:[] InsecureRegistryCIDRs:[127.0.0.0/8] IndexConfigs:{DockerIo:{Name:docker.io Mirrors:[] Secure:true Official:true}} Mirrors:[]} NCPU:24 MemTotal:67384782848 GenericResources:<nil> DockerRootDir:/var/lib/docker HTTPProxy: HTTPSProxy: NoProxy: Name:minikube Labels:[] ExperimentalBuild:false ServerVersion:19.03.9 ClusterStore: ClusterAdvertise: Runtimes:{Runc:{Path:runc}} DefaultRuntime:runc Swarm:{NodeID: NodeAddr: LocalNodeState:inactive ControlAvailable:false Error: RemoteManagers:<nil>} LiveRestoreEnabled:false Isolation: InitBinary:docker-init ContainerdCommit:{ID:e6b3f5632f50dbc4e9cb6288d911bf4f5e95b18e Expected:e6b3f5632f50dbc4e9cb6288d911bf4f5e95b18e} RuncCommit:{ID:6635b4f0c6af3810594d2770f662f34ddc15b40d Expected:6635b4f0c6af3810594d2770f662f34ddc15b40d} InitCommit:{ID:fec3683 Expected:fec3683} SecurityOptions:[name=seccomp,profile=default] ProductLicense: Warnings:[WARNING: bridge-nf-call-iptables is disabled WARNING: bridge-nf-call-ip6tables is disabled] ServerErrors:[] ClientInfo:{Debug:false Plugins:[] Warnings:<nil>}}
I1104 14:53:29.867162  477384 docker.go:147] overlay module found
I1104 14:53:29.867216  477384 global.go:110] docker priority: 8, state: {Installed:true Healthy:true Running:false NeedsImprovement:false Error:<nil> Fix: Doc:}
I1104 14:53:29.867363  477384 global.go:110] kvm2 priority: 7, state: {Installed:false Healthy:false Running:false NeedsImprovement:false Error:exec: "virsh": executable file not found in $PATH Fix:Install libvirt Doc:https://minikube.sigs.k8s.io/docs/reference/drivers/kvm2/}
I1104 14:53:29.867485  477384 global.go:110] none priority: 3, state: {Installed:true Healthy:false Running:false NeedsImprovement:false Error:the 'none' driver must be run as the root user Fix:For non-root usage, try the newer 'docker' driver Doc:}
I1104 14:53:29.867584  477384 global.go:110] podman priority: 2, state: {Installed:false Healthy:false Running:false NeedsImprovement:false Error:exec: "podman": executable file not found in $PATH Fix:Install Podman Doc:https://minikube.sigs.k8s.io/docs/drivers/podman/}
I1104 14:53:29.867742  477384 global.go:110] virtualbox priority: 5, state: {Installed:false Healthy:false Running:false NeedsImprovement:false Error:unable to find VBoxManage in $PATH Fix:Install VirtualBox Doc:https://minikube.sigs.k8s.io/docs/reference/drivers/virtualbox/}
I1104 14:53:29.867833  477384 global.go:110] vmware priority: 6, state: {Installed:false Healthy:false Running:false NeedsImprovement:false Error:exec: "docker-machine-driver-vmware": executable file not found in $PATH Fix:Install docker-machine-driver-vmware Doc:https://minikube.sigs.k8s.io/docs/reference/drivers/vmware/}
I1104 14:53:29.867878  477384 driver.go:236] not recommending "none" due to health: the 'none' driver must be run as the root user
I1104 14:53:29.867909  477384 driver.go:270] Picked: docker
I1104 14:53:29.867932  477384 driver.go:271] Alternatives: []
I1104 14:53:29.867948  477384 driver.go:272] Rejects: [kvm2 none podman virtualbox vmware]
I1104 14:53:30.860320  477384 out.go:110] * Automatically selected the docker driver
* Automatically selected the docker driver
I1104 14:53:30.860694  477384 start.go:272] selected driver: docker
I1104 14:53:30.860793  477384 start.go:680] validating driver "docker" against <nil>
I1104 14:53:30.860862  477384 start.go:691] status for docker: {Installed:true Healthy:true Running:false NeedsImprovement:false Error:<nil> Fix: Doc:}
I1104 14:53:30.861241  477384 cli_runner.go:110] Run: docker system info --format "{{json .}}"
I1104 14:53:31.070321  477384 info.go:253] docker info: {ID:ETIH:5DQ2:FUS5:VD6N:E6O2:S64S:6XHH:46GQ:YRYP:ZH4Q:723T:CX4C Containers:0 ContainersRunning:0 ContainersPaused:0 ContainersStopped:0 Images:11 Driver:overlay2 DriverStatus:[[Backing Filesystem extfs] [Supports d_type true] [Native Overlay Diff true]] SystemStatus:<nil> Plugins:{Volume:[local] Network:[bridge host ipvlan macvlan null overlay] Authorization:<nil> Log:[awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog]} MemoryLimit:true SwapLimit:true KernelMemory:true KernelMemoryTCP:true CPUCfsPeriod:true CPUCfsQuota:true CPUShares:true CPUSet:true PidsLimit:true IPv4Forwarding:true BridgeNfIptables:false BridgeNfIP6Tables:false Debug:false NFd:21 OomKillDisable:true NGoroutines:34 SystemTime:2020-11-04 14:53:30.954272482 +0700 +07 LoggingDriver:json-file CgroupDriver:cgroupfs NEventsListener:0 KernelVersion:3.10.0-957.27.2.el7.x86_64 OperatingSystem:CentOS Linux 7 (Core) OSType:linux Architecture:x86_64 IndexServerAddress:https://index.docker.io/v1/ RegistryConfig:{AllowNondistributableArtifactsCIDRs:[] AllowNondistributableArtifactsHostnames:[] InsecureRegistryCIDRs:[127.0.0.0/8] IndexConfigs:{DockerIo:{Name:docker.io Mirrors:[] Secure:true Official:true}} Mirrors:[]} NCPU:24 MemTotal:67384782848 GenericResources:<nil> DockerRootDir:/var/lib/docker HTTPProxy: HTTPSProxy: NoProxy: Name:minikube Labels:[] ExperimentalBuild:false ServerVersion:19.03.9 ClusterStore: ClusterAdvertise: Runtimes:{Runc:{Path:runc}} DefaultRuntime:runc Swarm:{NodeID: NodeAddr: LocalNodeState:inactive ControlAvailable:false Error: RemoteManagers:<nil>} LiveRestoreEnabled:false Isolation: InitBinary:docker-init ContainerdCommit:{ID:e6b3f5632f50dbc4e9cb6288d911bf4f5e95b18e Expected:e6b3f5632f50dbc4e9cb6288d911bf4f5e95b18e} RuncCommit:{ID:6635b4f0c6af3810594d2770f662f34ddc15b40d Expected:6635b4f0c6af3810594d2770f662f34ddc15b40d} InitCommit:{ID:fec3683 Expected:fec3683} SecurityOptions:[name=seccomp,profile=default] ProductLicense: Warnings:[WARNING: bridge-nf-call-iptables is disabled WARNING: bridge-nf-call-ip6tables is disabled] ServerErrors:[] ClientInfo:{Debug:false Plugins:[] Warnings:<nil>}}
I1104 14:53:31.070601  477384 start_flags.go:228] no existing cluster config was found, will generate one from the flags 
I1104 14:53:31.072889  477384 start_flags.go:246] Using suggested 16000MB memory alloc based on sys=64263MB, container=64263MB
I1104 14:53:31.073248  477384 start_flags.go:631] Wait components to verify : map[apiserver:true system_pods:true]
I1104 14:53:31.073332  477384 cni.go:74] Creating CNI manager for ""
I1104 14:53:31.073384  477384 cni.go:117] CNI unnecessary in this configuration, recommending no CNI
I1104 14:53:31.073407  477384 start_flags.go:358] config:
{Name:minikube KeepContext:false EmbedCerts:false MinikubeISO: KicBaseImage:private-registry/k8s-minikube/kicbase:v0.0.13@sha256:4d43acbd0050148d4bc399931f1b15253b5e73815b63a67b8ab4a5c9e523403f Memory:16000 CPUs:2 DiskSize:20000 VMDriver: Driver:docker HyperkitVpnKitSock: HyperkitVSockPorts:[] DockerEnv:[] ContainerVolumeMounts:[] InsecureRegistry:[] RegistryMirror:[] HostOnlyCIDR:192.168.99.1/24 HypervVirtualSwitch: HypervUseExternalSwitch:false HypervExternalAdapter: KVMNetwork:default KVMQemuURI:qemu:///system KVMGPU:false KVMHidden:false DockerOpt:[] DisableDriverMounts:false NFSShare:[] NFSSharesRoot:/nfsshares UUID: NoVTXCheck:false DNSProxy:false HostDNSResolver:true HostOnlyNicType:virtio NatNicType:virtio KubernetesConfig:{KubernetesVersion:v1.19.2 ClusterName:minikube APIServerName:minikubeCA APIServerNames:[] APIServerIPs:[] DNSDomain:cluster.local ContainerRuntime:docker CRISocket: NetworkPlugin: FeatureGates: ServiceCIDR:10.96.0.0/12 ImageRepository: LoadBalancerStartIP: LoadBalancerEndIP: ExtraOptions:[] ShouldLoadCachedImages:true EnableDefaultCNI:false CNI: NodeIP: NodePort:8443 NodeName:} Nodes:[] Addons:map[] VerifyComponents:map[apiserver:true system_pods:true] StartHostTimeout:6m0s ExposedPorts:[]}
I1104 14:53:31.258100  477384 out.go:110] * Starting control plane node minikube in cluster minikube
* Starting control plane node minikube in cluster minikube
I1104 14:53:31.365864  477384 image.go:92] Found private-registry/k8s-minikube/kicbase:v0.0.13@sha256:4d43acbd0050148d4bc399931f1b15253b5e73815b63a67b8ab4a5c9e523403f in local docker daemon, skipping pull
I1104 14:53:31.365965  477384 cache.go:115] private-registry/k8s-minikube/kicbase:v0.0.13@sha256:4d43acbd0050148d4bc399931f1b15253b5e73815b63a67b8ab4a5c9e523403f exists in daemon, skipping pull
I1104 14:53:31.366061  477384 preload.go:97] Checking if preload exists for k8s version v1.19.2 and runtime docker
I1104 14:53:31.366194  477384 preload.go:105] Found local preload: /home/developer/.minikube/cache/preloaded-tarball/preloaded-images-k8s-v6-v1.19.2-docker-overlay2-amd64.tar.lz4
I1104 14:53:31.366231  477384 cache.go:53] Caching tarball of preloaded images
I1104 14:53:31.366295  477384 preload.go:131] Found /home/developer/.minikube/cache/preloaded-tarball/preloaded-images-k8s-v6-v1.19.2-docker-overlay2-amd64.tar.lz4 in cache, skipping download
I1104 14:53:31.366320  477384 cache.go:56] Finished verifying existence of preloaded tar for  v1.19.2 on docker
I1104 14:53:31.366861  477384 profile.go:150] Saving config to /home/developer/.minikube/profiles/minikube/config.json ...
I1104 14:53:31.366941  477384 lock.go:36] WriteFile acquiring /home/developer/.minikube/profiles/minikube/config.json: {Name:mkeaa3f955f9219f67e348e1fc802ed1805d936c Clock:{} Delay:500ms Timeout:1m0s Cancel:<nil>}
I1104 14:53:31.367512  477384 cache.go:182] Successfully downloaded all kic artifacts
I1104 14:53:31.367622  477384 start.go:314] acquiring machines lock for minikube: {Name:mk5b0b1a9f0a00e85614108ea90a1adc102d111f Clock:{} Delay:500ms Timeout:10m0s Cancel:<nil>}
I1104 14:53:31.367840  477384 start.go:318] acquired machines lock for "minikube" in 170.489Β΅s
I1104 14:53:31.367887  477384 start.go:90] Provisioning new machine with config: &{Name:minikube KeepContext:false EmbedCerts:false MinikubeISO: KicBaseImage:private-registry/k8s-minikube/kicbase:v0.0.13@sha256:4d43acbd0050148d4bc399931f1b15253b5e73815b63a67b8ab4a5c9e523403f Memory:16000 CPUs:2 DiskSize:20000 VMDriver: Driver:docker HyperkitVpnKitSock: HyperkitVSockPorts:[] DockerEnv:[] ContainerVolumeMounts:[] InsecureRegistry:[] RegistryMirror:[] HostOnlyCIDR:192.168.99.1/24 HypervVirtualSwitch: HypervUseExternalSwitch:false HypervExternalAdapter: KVMNetwork:default KVMQemuURI:qemu:///system KVMGPU:false KVMHidden:false DockerOpt:[] DisableDriverMounts:false NFSShare:[] NFSSharesRoot:/nfsshares UUID: NoVTXCheck:false DNSProxy:false HostDNSResolver:true HostOnlyNicType:virtio NatNicType:virtio KubernetesConfig:{KubernetesVersion:v1.19.2 ClusterName:minikube APIServerName:minikubeCA APIServerNames:[] APIServerIPs:[] DNSDomain:cluster.local ContainerRuntime:docker CRISocket: NetworkPlugin: FeatureGates: ServiceCIDR:10.96.0.0/12 ImageRepository: LoadBalancerStartIP: LoadBalancerEndIP: ExtraOptions:[] ShouldLoadCachedImages:true EnableDefaultCNI:false CNI: NodeIP: NodePort:8443 NodeName:} Nodes:[{Name: IP: Port:8443 KubernetesVersion:v1.19.2 ControlPlane:true Worker:true}] Addons:map[] VerifyComponents:map[apiserver:true system_pods:true] StartHostTimeout:6m0s ExposedPorts:[]} &{Name: IP: Port:8443 KubernetesVersion:v1.19.2 ControlPlane:true Worker:true}
I1104 14:53:31.368101  477384 start.go:127] createHost starting for "" (driver="docker")
I1104 14:53:32.177252  477384 out.go:110] * Creating docker container (CPUs=2, Memory=16000MB) ...
* Creating docker container (CPUs=2, Memory=16000MB) ...
I1104 14:53:32.177960  477384 start.go:164] libmachine.API.Create for "minikube" (driver="docker")
I1104 14:53:32.178196  477384 client.go:165] LocalClient.Create starting
I1104 14:53:32.178340  477384 main.go:119] libmachine: Reading certificate data from /home/developer/.minikube/certs/ca.pem
I1104 14:53:32.178446  477384 main.go:119] libmachine: Decoding PEM data...
I1104 14:53:32.178557  477384 main.go:119] libmachine: Parsing certificate...
I1104 14:53:32.179176  477384 main.go:119] libmachine: Reading certificate data from /home/developer/.minikube/certs/cert.pem
I1104 14:53:32.179244  477384 main.go:119] libmachine: Decoding PEM data...
I1104 14:53:32.179290  477384 main.go:119] libmachine: Parsing certificate...
I1104 14:53:32.180151  477384 cli_runner.go:110] Run: docker network inspect minikube --format "{{(index .IPAM.Config 0).Subnet}},{{(index .IPAM.Config 0).Gateway}},{{(index .Options "com.docker.network.driver.mtu")}}"
W1104 14:53:32.273740  477384 cli_runner.go:148] docker network inspect minikube --format "{{(index .IPAM.Config 0).Subnet}},{{(index .IPAM.Config 0).Gateway}},{{(index .Options "com.docker.network.driver.mtu")}}" returned with exit code 1
I1104 14:53:32.274070  477384 network_create.go:178] running [docker network inspect minikube] to gather additional debugging logs...
I1104 14:53:32.274122  477384 cli_runner.go:110] Run: docker network inspect minikube
W1104 14:53:32.366511  477384 cli_runner.go:148] docker network inspect minikube returned with exit code 1
I1104 14:53:32.366598  477384 network_create.go:181] error running [docker network inspect minikube]: docker network inspect minikube: exit status 1
stdout:
[]

stderr:
Error: No such network: minikube
I1104 14:53:32.366652  477384 network_create.go:183] output of [docker network inspect minikube]: -- stdout --
[]

-- /stdout --
** stderr ** 
Error: No such network: minikube

** /stderr **
I1104 14:53:32.366774  477384 cli_runner.go:110] Run: docker network inspect bridge --format "{{(index .IPAM.Config 0).Subnet}},{{(index .IPAM.Config 0).Gateway}},{{(index .Options "com.docker.network.driver.mtu")}}"
I1104 14:53:32.458617  477384 network_create.go:96] attempt to create network 192.168.49.0/24 with subnet: minikube and gateway 192.168.49.1 and MTU of 1500 ...
I1104 14:53:32.458954  477384 cli_runner.go:110] Run: docker network create --driver=bridge --subnet=192.168.49.0/24 --gateway=192.168.49.1 -o --ip-masq -o --icc --label=created_by.minikube.sigs.k8s.io=true minikube -o com.docker.network.driver.mtu=1500
I1104 14:53:36.145753  477384 cli_runner.go:154] Completed: docker network create --driver=bridge --subnet=192.168.49.0/24 --gateway=192.168.49.1 -o --ip-masq -o --icc --label=created_by.minikube.sigs.k8s.io=true minikube -o com.docker.network.driver.mtu=1500: (3.686685949s)
I1104 14:53:36.145869  477384 kic.go:93] calculated static IP "192.168.49.2" for the "minikube" container
I1104 14:53:36.146099  477384 cli_runner.go:110] Run: docker ps -a --format {{.Names}}
I1104 14:53:36.237844  477384 cli_runner.go:110] Run: docker volume create minikube --label name.minikube.sigs.k8s.io=minikube --label created_by.minikube.sigs.k8s.io=true
I1104 14:53:36.805732  477384 oci.go:102] Successfully created a docker volume minikube
I1104 14:53:36.805912  477384 cli_runner.go:110] Run: docker run --rm --entrypoint /usr/bin/test -v minikube:/var private-registry/k8s-minikube/kicbase:v0.0.13@sha256:4d43acbd0050148d4bc399931f1b15253b5e73815b63a67b8ab4a5c9e523403f -d /var/lib
I1104 14:53:52.639946  477384 cli_runner.go:154] Completed: docker run --rm --entrypoint /usr/bin/test -v minikube:/var private-registry/k8s-minikube/kicbase:v0.0.13@sha256:4d43acbd0050148d4bc399931f1b15253b5e73815b63a67b8ab4a5c9e523403f -d /var/lib: (15.833806971s)
I1104 14:53:52.640078  477384 oci.go:106] Successfully prepared a docker volume minikube
W1104 14:53:52.640242  477384 oci.go:153] Your kernel does not support swap limit capabilities or the cgroup is not mounted.
I1104 14:53:52.640352  477384 preload.go:97] Checking if preload exists for k8s version v1.19.2 and runtime docker
I1104 14:53:52.640398  477384 cli_runner.go:110] Run: docker info --format "'{{json .SecurityOptions}}'"
I1104 14:53:52.640438  477384 preload.go:105] Found local preload: /home/developer/.minikube/cache/preloaded-tarball/preloaded-images-k8s-v6-v1.19.2-docker-overlay2-amd64.tar.lz4
I1104 14:53:52.640468  477384 kic.go:148] Starting extracting preloaded images to volume ...
I1104 14:53:52.640564  477384 cli_runner.go:110] Run: docker run --rm --entrypoint /usr/bin/tar -v /home/developer/.minikube/cache/preloaded-tarball/preloaded-images-k8s-v6-v1.19.2-docker-overlay2-amd64.tar.lz4:/preloaded.tar:ro -v minikube:/extractDir private-registry/k8s-minikube/kicbase:v0.0.13@sha256:4d43acbd0050148d4bc399931f1b15253b5e73815b63a67b8ab4a5c9e523403f -I lz4 -xvf /preloaded.tar -C /extractDir
I1104 14:53:52.857567  477384 cli_runner.go:110] Run: docker run -d -t --privileged --security-opt seccomp=unconfined --tmpfs /tmp --tmpfs /run -v /lib/modules:/lib/modules:ro --hostname minikube --name minikube --label created_by.minikube.sigs.k8s.io=true --label name.minikube.sigs.k8s.io=minikube --label role.minikube.sigs.k8s.io= --label mode.minikube.sigs.k8s.io=minikube --network minikube --ip 192.168.49.2 --volume minikube:/var --security-opt apparmor=unconfined --memory=16000mb --memory-swap=16000mb --cpus=2 -e container=docker --expose 8443 --publish=127.0.0.1::8443 --publish=127.0.0.1::22 --publish=127.0.0.1::2376 --publish=127.0.0.1::5000 private-registry/k8s-minikube/kicbase:v0.0.13@sha256:4d43acbd0050148d4bc399931f1b15253b5e73815b63a67b8ab4a5c9e523403f
I1104 14:54:06.731435  477384 cli_runner.go:154] Completed: docker run -d -t --privileged --security-opt seccomp=unconfined --tmpfs /tmp --tmpfs /run -v /lib/modules:/lib/modules:ro --hostname minikube --name minikube --label created_by.minikube.sigs.k8s.io=true --label name.minikube.sigs.k8s.io=minikube --label role.minikube.sigs.k8s.io= --label mode.minikube.sigs.k8s.io=minikube --network minikube --ip 192.168.49.2 --volume minikube:/var --security-opt apparmor=unconfined --memory=16000mb --memory-swap=16000mb --cpus=2 -e container=docker --expose 8443 --publish=127.0.0.1::8443 --publish=127.0.0.1::22 --publish=127.0.0.1::2376 --publish=127.0.0.1::5000 private-registry/k8s-minikube/kicbase:v0.0.13@sha256:4d43acbd0050148d4bc399931f1b15253b5e73815b63a67b8ab4a5c9e523403f: (13.873740367s)
I1104 14:54:06.731544  477384 cli_runner.go:110] Run: docker container inspect minikube --format={{.State.Running}}
I1104 14:54:06.825731  477384 cli_runner.go:110] Run: docker container inspect minikube --format={{.State.Status}}
I1104 14:54:06.923143  477384 cli_runner.go:110] Run: docker exec minikube stat /var/lib/dpkg/alternatives/iptables
I1104 14:54:07.900047  477384 oci.go:245] the created container "minikube" has a running status.
I1104 14:54:07.900139  477384 kic.go:179] Creating ssh key for kic: /home/developer/.minikube/machines/minikube/id_rsa...
I1104 14:54:09.009280  477384 kic_runner.go:179] docker (temp): /home/developer/.minikube/machines/minikube/id_rsa.pub --> /home/docker/.ssh/authorized_keys (381 bytes)
I1104 14:54:10.431121  477384 cli_runner.go:110] Run: docker container inspect minikube --format={{.State.Status}}
I1104 14:54:10.523350  477384 kic_runner.go:93] Run: chown docker:docker /home/docker/.ssh/authorized_keys
I1104 14:54:10.523406  477384 kic_runner.go:114] Args: [docker exec --privileged minikube chown docker:docker /home/docker/.ssh/authorized_keys]
I1104 14:54:29.894876  477384 cli_runner.go:154] Completed: docker run --rm --entrypoint /usr/bin/tar -v /home/developer/.minikube/cache/preloaded-tarball/preloaded-images-k8s-v6-v1.19.2-docker-overlay2-amd64.tar.lz4:/preloaded.tar:ro -v minikube:/extractDir private-registry/k8s-minikube/kicbase:v0.0.13@sha256:4d43acbd0050148d4bc399931f1b15253b5e73815b63a67b8ab4a5c9e523403f -I lz4 -xvf /preloaded.tar -C /extractDir: (37.254144638s)
I1104 14:54:29.895009  477384 kic.go:157] duration metric: took 37.254533 seconds to extract preloaded images to volume
I1104 14:54:29.895298  477384 cli_runner.go:110] Run: docker container inspect minikube --format={{.State.Status}}
I1104 14:54:29.995863  477384 machine.go:88] provisioning docker machine ...
I1104 14:54:29.995990  477384 ubuntu.go:166] provisioning hostname "minikube"
I1104 14:54:29.996140  477384 cli_runner.go:110] Run: docker container inspect -f "'{{(index (index .NetworkSettings.Ports "22/tcp") 0).HostPort}}'" minikube
I1104 14:54:30.094510  477384 main.go:119] libmachine: Using SSH client type: native
I1104 14:54:30.095721  477384 main.go:119] libmachine: &{{{<nil> 0 [] [] []} docker [0x7e4fa0] 0x7e4f60 <nil>  [] 0s} 127.0.0.1 32771 <nil> <nil>}
I1104 14:54:30.095806  477384 main.go:119] libmachine: About to run SSH command:
sudo hostname minikube && echo "minikube" | sudo tee /etc/hostname
I1104 14:56:37.344017  477384 main.go:119] libmachine: Error dialing TCP: ssh: handshake failed: read tcp 127.0.0.1:57332->127.0.0.1:32771: read: connection reset by peer
I1104 14:59:32.178745  477384 ssh_runner.go:148] Run: sh -c "df -h /var | awk 'NR==2{print $5}'"
I1104 14:59:32.178977  477384 cli_runner.go:110] Run: docker container inspect -f "'{{(index (index .NetworkSettings.Ports "22/tcp") 0).HostPort}}'" minikube
I1104 14:59:32.314338  477384 sshutil.go:45] new ssh client: &{IP:127.0.0.1 Port:32771 SSHKeyPath:/home/developer/.minikube/machines/minikube/id_rsa Username:docker}
I1104 15:00:57.952105  477384 main.go:119] libmachine: Error dialing TCP: ssh: handshake failed: read tcp 127.0.0.1:47376->127.0.0.1:32771: read: connection reset by peer
W1104 15:01:39.551865  477384 sshutil.go:56] dial failure (will retry): ssh: handshake failed: read tcp 127.0.0.1:50304->127.0.0.1:32771: read: connection reset by peer
W1104 15:01:39.552184  477384 start.go:258] error running df -h /var: NewSession: new client: new client: ssh: handshake failed: read tcp 127.0.0.1:50304->127.0.0.1:32771: read: connection reset by peer
W1104 15:01:39.552308  477384 start.go:240] error getting percentage of /var that is free: NewSession: new client: new client: ssh: handshake failed: read tcp 127.0.0.1:50304->127.0.0.1:32771: read: connection reset by peer
I1104 15:01:39.552373  477384 start.go:130] duration metric: createHost completed in 8m8.184230594s
I1104 15:01:39.552402  477384 start.go:81] releasing machines lock for "minikube", held for 8m8.18453576s
W1104 15:01:39.552542  477384 start.go:376] error starting host: creating host: create host timed out in 360.000000 seconds
I1104 15:01:39.554575  477384 cli_runner.go:110] Run: docker container inspect minikube --format={{.State.Status}}
I1104 15:01:39.729196  477384 stop.go:39] StopHost: minikube
W1104 15:01:39.729974  477384 register.go:112] "Stopping" was not found within the registered steps for "Initial Minikube Setup": [Initial Minikube Setup Selecting Driver Downloading Artifacts Starting Node Running on Localhost Local OS Release Creating Container Creating VM Preparing Kubernetes Configuring Localhost Environment Verifying Kubernetes Enabling Addons Done]
I1104 15:01:40.679592  477384 out.go:110] * Stopping node "minikube"  ...
* Stopping node "minikube"  ...
I1104 15:01:40.679832  477384 cli_runner.go:110] Run: docker container inspect minikube --format={{.State.Status}}
W1104 15:01:40.836155  477384 register.go:112] "Stopping" was not found within the registered steps for "Initial Minikube Setup": [Initial Minikube Setup Selecting Driver Downloading Artifacts Starting Node Running on Localhost Local OS Release Creating Container Creating VM Preparing Kubernetes Configuring Localhost Environment Verifying Kubernetes Enabling Addons Done]
I1104 15:01:41.164892  477384 out.go:110] * Powering off "minikube" via SSH ...
[developer@minikube ~]$ minikube status
E1104 15:07:43.200566  483419 status.go:340] failed to get storage capacity of /var: NewSession: new client: new client: ssh: handshake failed: read tcp 127.0.0.1:37754->127.0.0.1:32775: read: connection reset by peer
E1104 15:07:43.200889  483419 status.go:227] status error: NewSession: new client: new client: ssh: handshake failed: read tcp 127.0.0.1:37754->127.0.0.1:32775: read: connection reset by peer
minikube
type: Control Plane
host: Error
kubelet: Nonexistent
apiserver: Nonexistent
kubeconfig: Configured
chiehpower commented 3 years ago

I am not an expert either but seems like something is wrong with your Docker setup? So it basically failed back to use VirtualBox instead.

Was your intention to use Docker as the underlying VM? You can specify the driver (read the docs) to be VirtualBox or others - default is Docker.

Hi @micos76, Thanks for your suggestion!! I will take a look this part!

sharifelgamal commented 3 years ago

Yeah @chiehpower, there was a failure trying to use docker as the minikube driver, which is what we always try to use by default if we detect it is installed. minikube did start up successfully with virtualbox though as a fallback. If you want to just start up minikube with virtualbox, try minikube start --driver virtualbox.

The docker issue itself seems to be a permissions issue. Is your user part of the docker group in your machine?

sharifelgamal commented 3 years ago

@hoantv Your issue is definitely different from the one described in this issue, could you open a new issue so it doesn't get lost?

chiehpower commented 3 years ago

Yeah @chiehpower, there was a failure trying to use docker as the minikube driver, which is what we always try to use by default if we detect it is installed. minikube did start up successfully with virtualbox though as a fallback. If you want to just start up minikube with virtualbox, try minikube start --driver virtualbox.

The docker issue itself seems to be a permissions issue. Is your user part of the docker group in your machine?

@sharifelgamal Thanks for your sharing! I will study more about this. If there is any other information on here, I will reopen this topic. Thanks a lot!

arunlouie commented 3 years ago

Any update on this? I am also facing the same error which was once working.

Tried with driver = none I am able to start. But not for docker driver. Any help please.

nirandaperera commented 2 years ago

Hi all, any update on this? I am having a similar error. But none of the suggestions seems to be working for me :-( I opened a new issue with the details. #12953