Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update kubernetes blog post to use docker driver instead of none #8568

Open
Umar-Basharat103 opened this issue Jun 26, 2020 · 20 comments
Open
Assignees
Labels
co/none-driver kind/documentation Categorizes issue or PR as related to documentation. lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. priority/backlog Higher priority than priority/awaiting-more-evidence.

Comments

@Umar-Basharat103
Copy link

~$ sudo minikube start
πŸ˜„ minikube v1.11.0 on Ubuntu 18.04
✨ Using the none driver based on existing profile
πŸ‘ Starting control plane node minikube in cluster minikube
πŸ”„ Restarting existing none bare metal machine for "minikube" ...
ℹ️ OS release is Ubuntu 18.04.4 LTS

❌ [NONE_DOCKER_EXIT_5] Failed to enable container runtime sudo systemctl start docker: exit status 5
stdout:

stderr:
Failed to start docker.service: Unit docker.service not found.

πŸ’‘ Suggestion: Ensure that Docker is installed and healthy: Run 'sudo systemctl start docker' and 'journalctl -u docker'. Alternatively, select another value for --driver
πŸ“˜ Documentation: https://minikube.sigs.k8s.io/docs/reference/drivers/none
⁉️ Related issue: #5532

@prasadkatti
Copy link
Contributor

If you are using the none driver, then you should make that docker is installed. https://minikube.sigs.k8s.io/docs/drivers/none/#requirements

@prasadkatti prasadkatti added co/none-driver kind/support Categorizes issue or PR as a support question. labels Jun 27, 2020
@shayanjalil
Copy link

I'm following this blog to get Minikube up and running on Windows + WSL.

Now my understanding is that when using Docker for Windows with WSL, WSL uses the docker backend installed on Windows and you do not need to install dokcer on Linux.

But when I try to run Minikube I get

shayan@DESKTOP-H4QPUDT:/usr/local/bin$ sudo minikube start --driver=none
πŸ˜„  minikube v1.12.1 on Ubuntu 20.04
✨  Using the none driver based on existing profile
πŸ‘  Starting control plane node minikube in cluster minikube
πŸ”„  Restarting existing none bare metal machine for "minikube" ...
ℹ️  OS release is Ubuntu 20.04 LTS

❌  [NONE_DOCKER_EXIT_5] Failed to enable container runtime sudo systemctl start docker: exit status 5
stdout:

stderr:
Failed to start docker.service: Unit docker.service not found.

πŸ’‘  Suggestion: Ensure that Docker is installed and healthy: Run 'sudo systemctl start docker' and 'journalctl -u docker'. Alternatively, select another value for --driver
πŸ“˜  Documentation: https://minikube.sigs.k8s.io/docs/reference/drivers/none
⁉️   Related issue: https://github.com/kubernetes/minikube/issues/5532
shayan@DESKTOP-H4QPUDT:/usr/local/bin$

Detailed output:

/usr/local/bin$ sudo minikube start --alsologtostderr -v=4 --driver=none
I0720 17:02:54.204000    2066 out.go:170] Setting JSON to false
I0720 17:02:54.204497    2066 start.go:101] hostinfo: {"hostname":"DESKTOP-H4QPUDT","uptime":2117,"bootTime":1595244457,"procs":81,"os":"linux","platform":"ubuntu","platformFamily":"debian","platformVersion":"20.04","kernelVersion":"4.19.104-microsoft-standard","virtualizationSystem":"","virtualizationRole":"","hostid":"2fd590ee-1f8f-0159-773a-3c735f104aeb"}
I0720 17:02:54.204701    2066 start.go:111] virtualization:
πŸ˜„  minikube v1.12.1 on Ubuntu 20.04
I0720 17:02:54.211099    2066 exec_runner.go:49] Run: systemctl --version
I0720 17:02:54.212065    2066 driver.go:257] Setting default libvirt URI to qemu:///system
✨  Using the none driver based on existing profile
I0720 17:02:54.214367    2066 start.go:217] selected driver: none
I0720 17:02:54.214389    2066 start.go:621] validating driver "none" against &{Name:minikube KeepContext:false EmbedCerts:false MinikubeISO: KicBaseImage:gcr.io/k8s-minikube/kicbase:v0.0.10@sha256:f58e0c4662bac8a9b5dda7984b185bad8502ade5d9fa364bf2755d636ab51438 Memory:2200 CPUs:2 DiskSize:20000 VMDriver: Driver:none HyperkitVpnKitSock: HyperkitVSockPorts:[] DockerEnv:[] 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.18.3 ClusterName:minikube APIServerName:minikubeCA APIServerNames:[] APIServerIPs:[] DNSDomain:cluster.local ContainerRuntime:docker CRISocket: NetworkPlugin: FeatureGates: ServiceCIDR:10.96.0.0/12 ImageRepository: LoadBalancerStartIP: LoadBalancerEndIP: ExtraOptions:[{Component:kubelet Key:resolv-conf Value:/run/systemd/resolve/resolv.conf}] ShouldLoadCachedImages:false EnableDefaultCNI:false CNI: NodeIP: NodePort:8443 NodeName:} Nodes:[{Name:m01 IP:192.168.238.8 Port:8443 KubernetesVersion:v1.18.3 ControlPlane:true Worker:true}] Addons:map[] VerifyComponents:map[apiserver:true system_pods:true]}
I0720 17:02:54.214447    2066 start.go:632] status for none: {Installed:true Healthy:true NeedsImprovement:false Error:<nil> Fix: Doc:}
I0720 17:02:54.214484    2066 start.go:1003] auto setting extra-config to "kubelet.resolv-conf=/run/systemd/resolve/resolv.conf".
I0720 17:02:54.214562    2066 start_flags.go:340] config:
{Name:minikube KeepContext:false EmbedCerts:false MinikubeISO: KicBaseImage:gcr.io/k8s-minikube/kicbase:v0.0.10@sha256:f58e0c4662bac8a9b5dda7984b185bad8502ade5d9fa364bf2755d636ab51438 Memory:2200 CPUs:2 DiskSize:20000 VMDriver: Driver:none HyperkitVpnKitSock: HyperkitVSockPorts:[] DockerEnv:[] 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.18.3 ClusterName:minikube APIServerName:minikubeCA APIServerNames:[] APIServerIPs:[] DNSDomain:cluster.local ContainerRuntime:docker CRISocket: NetworkPlugin: FeatureGates: ServiceCIDR:10.96.0.0/12 ImageRepository: LoadBalancerStartIP: LoadBalancerEndIP: ExtraOptions:[{Component:kubelet Key:resolv-conf Value:/run/systemd/resolve/resolv.conf}] ShouldLoadCachedImages:false EnableDefaultCNI:false CNI: NodeIP: NodePort:8443 NodeName:} Nodes:[{Name:m01 IP:192.168.238.8 Port:8443 KubernetesVersion:v1.18.3 ControlPlane:true Worker:true}] Addons:map[] VerifyComponents:map[apiserver:true system_pods:true]}
πŸ‘  Starting control plane node minikube in cluster minikube
I0720 17:02:54.216855    2066 profile.go:150] Saving config to /root/.minikube/profiles/minikube/config.json ...
I0720 17:02:54.216968    2066 cache.go:178] Successfully downloaded all kic artifacts
I0720 17:02:54.217005    2066 start.go:241] acquiring machines lock for minikube: {Name:mka00e65579c2b557a802898fd1cf03ec4ab30a1 Clock:{} Delay:500ms Timeout:15m0s Cancel:<nil>}
I0720 17:02:54.217277    2066 start.go:245] acquired machines lock for "minikube" in 248.399Β΅s
I0720 17:02:54.217290    2066 start.go:89] Skipping create...Using existing machine configuration
I0720 17:02:54.217295    2066 fix.go:53] fixHost starting: m01
W0720 17:02:54.217429    2066 none.go:130] unable to get port: "minikube" does not appear in /root/.kube/config
I0720 17:02:54.217513    2066 api_server.go:146] Checking apiserver status ...
I0720 17:02:54.217529    2066 exec_runner.go:49] Run: sudo pgrep -xnf kube-apiserver.*minikube.*
W0720 17:02:54.225475    2066 api_server.go:150] stopped: unable to get apiserver pid: sudo pgrep -xnf kube-apiserver.*minikube.*: exit status 1
stdout:

stderr:
I0720 17:02:54.225510    2066 system_pods.go:161] Checking kubelet status ...
I0720 17:02:54.225544    2066 exec_runner.go:49] Run: sudo systemctl is-active --quiet service kubelet
I0720 17:02:54.231052    2066 fix.go:105] recreateIfNeeded on minikube: state=Stopped err=<nil>
W0720 17:02:54.231085    2066 fix.go:131] unexpected machine state, will restart: <nil>
πŸ”„  Restarting existing none bare metal machine for "minikube" ...
I0720 17:02:54.237074    2066 profile.go:150] Saving config to /root/.minikube/profiles/minikube/config.json ...
I0720 17:02:54.237176    2066 start.go:204] post-start starting for "minikube" (driver="none")
I0720 17:02:54.237207    2066 start.go:214] creating required directories: [/etc/kubernetes/addons /etc/kubernetes/manifests /var/tmp/minikube /var/lib/minikube /var/lib/minikube/certs /var/lib/minikube/images /var/lib/minikube/binaries /tmp/gvisor /usr/share/ca-certificates /etc/ssl/certs]
I0720 17:02:54.237271    2066 exec_runner.go:49] Run: sudo mkdir -p /etc/kubernetes/addons /etc/kubernetes/manifests /var/tmp/minikube /var/lib/minikube /var/lib/minikube/certs /var/lib/minikube/images /var/lib/minikube/binaries /tmp/gvisor /usr/share/ca-certificates /etc/ssl/certs
I0720 17:02:54.241662    2066 main.go:115] libmachine: Couldn't set key PRIVACY_POLICY_URL, no corresponding struct field found
I0720 17:02:54.241701    2066 main.go:115] libmachine: Couldn't set key VERSION_CODENAME, no corresponding struct field found
I0720 17:02:54.241726    2066 main.go:115] libmachine: Couldn't set key UBUNTU_CODENAME, no corresponding struct field found
ℹ️  OS release is Ubuntu 20.04 LTS
I0720 17:02:54.245515    2066 filesync.go:118] Scanning /root/.minikube/addons for local assets ...
I0720 17:02:54.245565    2066 filesync.go:118] Scanning /root/.minikube/files for local assets ...
I0720 17:02:54.245608    2066 start.go:207] post-start completed in 8.397693ms
I0720 17:02:54.245637    2066 fix.go:92] none is local, skipping auth/time setup (requires ssh)
I0720 17:02:54.245658    2066 fix.go:55] fixHost completed within 28.361376ms
I0720 17:02:54.245676    2066 start.go:76] releasing machines lock for "minikube", held for 28.388476ms
I0720 17:02:54.245878    2066 exec_runner.go:49] Run: sudo systemctl is-active --quiet service containerd
I0720 17:02:54.245978    2066 exec_runner.go:49] Run: curl -sS -m 2 https://k8s.gcr.io/
I0720 17:02:54.251113    2066 exec_runner.go:49] Run: sudo systemctl daemon-reload
I0720 17:02:54.356633    2066 exec_runner.go:49] Run: sudo systemctl start docker
I0720 17:02:54.362393    2066 exit.go:58] WithError(Failed to enable container runtime)=sudo systemctl start docker: exit status 5
stdout:

stderr:
Failed to start docker.service: Unit docker.service not found.
 called from:
goroutine 1 [running]:
runtime/debug.Stack(0x1b8febe, 0x9, 0x1b893b6)
        /usr/local/go/src/runtime/debug/stack.go:24 +0x9d
k8s.io/minikube/pkg/minikube/exit.WithError(0x1bbe107, 0x22, 0x1eb6e80, 0xc0003ca0d0)
        /app/pkg/minikube/exit/exit.go:58 +0x34
k8s.io/minikube/pkg/minikube/node.configureRuntimes(0x7fe2a1d9d588, 0x2cff560, 0xc0008cbf08, 0x8, 0x0, 0x0, 0x0, 0xc0008fe000, 0x6b, 0x898, ...)
        /app/pkg/minikube/node/start.go:275 +0x24e
k8s.io/minikube/pkg/minikube/node.Start(0x1ef59a0, 0x2cff560, 0x1, 0x1f180c0, 0xc0005cb740, 0xc0008bef00, 0xc00066f180, 0xc0005cb540, 0xc0009122a0, 0xc0005cb701, ...)
        /app/pkg/minikube/node/start.go:91 +0x1a1
k8s.io/minikube/cmd/minikube/cmd.startWithDriver(0x1ef59a0, 0x2cff560, 0x1, 0x1f180c0, 0xc0005cb740, 0xc0008bef00, 0xc00066f180, 0xc0005cb540, 0xc0009122a0, 0xc000101880, ...)
        /app/cmd/minikube/cmd/start.go:283 +0x7c
k8s.io/minikube/cmd/minikube/cmd.runStart(0x2cb86a0, 0xc0008a0300, 0x0, 0x3)
        /app/cmd/minikube/cmd/start.go:203 +0x3bf
github.com/spf13/cobra.(*Command).execute(0x2cb86a0, 0xc0008a02d0, 0x3, 0x3, 0x2cb86a0, 0xc0008a02d0)
        /go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:846 +0x29d
github.com/spf13/cobra.(*Command).ExecuteC(0x2cb76e0, 0x0, 0x1, 0xc0005c2b20)
        /go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:950 +0x349
github.com/spf13/cobra.(*Command).Execute(...)
        /go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:887
k8s.io/minikube/cmd/minikube/cmd.Execute()
        /app/cmd/minikube/cmd/root.go:106 +0x72c
main.main()
        /app/cmd/minikube/main.go:71 +0x11f

❌  [NONE_DOCKER_EXIT_5] Failed to enable container runtime sudo systemctl start docker: exit status 5
stdout:

stderr:
Failed to start docker.service: Unit docker.service not found.

πŸ’‘  Suggestion: Ensure that Docker is installed and healthy: Run 'sudo systemctl start docker' and 'journalctl -u docker'. Alternatively, select another value for --driver
πŸ“˜  Documentation: https://minikube.sigs.k8s.io/docs/reference/drivers/none
⁉️   Related issue: https://github.com/kubernetes/minikube/issues/5532
shayan@DESKTOP-H4QPUDT:/usr/local/bin$ minikube start --alsologtostderr -v=4

@wimsikal
Copy link

wimsikal commented Jul 31, 2020

You need to install docker on Ubuntu.

sudo apt-get update

sudo apt-get install \
  apt-transport-https \
  ca-certificates \
  curl \
  gnupg-agent \
  software-properties-common

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
 
sudo apt-key fingerprint 0EBFCD88

sudo add-apt-repository \
  "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
  $(lsb_release -cs) \
  stable"

sudo apt-get update

sudo apt-get install docker-ce docker-ce-cli containerd.io

# if prompted about grub during install, select all drives and then select yes when the message pops up again

sudo docker run hello-world

@priyawadhwa priyawadhwa changed the title while start minikube i am facing that problem what should i do ??? Failed to enable container runtime sudo systemctl start docker: exit status 5 Aug 12, 2020
@priyawadhwa
Copy link

Hey @shayanjalil the none driver is only compatible with Linux. I'd suggest running Windows with the docker drivre via:

minikube start --driver docker

if you have docker installed.

@priyawadhwa
Copy link

priyawadhwa commented Aug 12, 2020

@Umar-Basharat103 similarly, I'd recommend using docker on ubuntu as well as it's more reliable. Do you have docker installed? If not, you'll need to install it for the none driver as well.

@shayanjalil
Copy link

@priyawadhwa in my comment I mentioned that I'm following this blog to get minikube up and running inside a Linux environment using WSL on Windows. This blog doesn't ask to install docker in Linux. It says that WSL will use the Windows installation for docker.

@a-dyakov-mercuryo
Copy link

a-dyakov-mercuryo commented Aug 19, 2020

Im trying start minikube by this article WSL+Docker: Kubernetes on the Windows Desktop and get same error

$ sudo minikube start --driver=none
πŸ˜„  minikube v1.12.3 on Ubuntu 20.04
✨  Using the none driver based on existing profile
πŸ‘  Starting control plane node minikube in cluster minikube
πŸ”„  Restarting existing none bare metal machine for "minikube" ...
ℹ️  OS release is Ubuntu 20.04.1 LTS

E0819 10:29:28.150647    2253 exit.go:76] &{ID:NONE_DOCKER_EXIT_5 Err:sudo systemctl start docker: exit status 5
stdout:

stderr:
Failed to start docker.service: Unit docker.service not found.
 Advice:Ensure that Docker is installed and healthy: Run 'sudo systemctl start docker' and 'journalctl -u docker'. Alternatively, select another value for --driver URL:https://minikube.sigs.k8s.io/docs/reference/drivers/none Issues:[5532] ShowIssueLink:false}
❌  [NONE_DOCKER_EXIT_5] Failed to enable container runtime sudo systemctl start docker: exit status 5
stdout:

stderr:
Failed to start docker.service: Unit docker.service not found.

πŸ’‘  Suggestion: Ensure that Docker is installed and healthy: Run 'sudo systemctl start docker' and 'journalctl -u docker'. Alternatively, select another value for --driver
πŸ“˜  Documentation: https://minikube.sigs.k8s.io/docs/reference/drivers/none
⁉️   Related issue: https://github.com/kubernetes/minikube/issues/5532

also can see
$ sudo minikube start --driver=none --alsologtostderr -v=4\


I0819 10:37:31.555934    2395 out.go:197] Setting JSON to false
I0819 10:37:31.557021    2395 start.go:100] hostinfo: {"hostname":"Andrey-DELL","uptime":6677,"bootTime":1597815974,"procs":84,"os":"linux","platform":"ubuntu","platformFamily":"debian","platformVersion":"20.04","kernelVersion":"4.19.104-microsoft-standard","virtualizationSystem":"","virtualizationRole":"","hostid":"64b721ff-1614-314b-92e1-6bfd5f2d4580"}
I0819 10:37:31.557398    2395 start.go:110] virtualization:
I0819 10:37:31.561138    2395 out.go:105] πŸ˜„  minikube v1.12.3 on Ubuntu 20.04
πŸ˜„  minikube v1.12.3 on Ubuntu 20.04
I0819 10:37:31.561410    2395 notify.go:125] Checking for updates...
I0819 10:37:31.563622    2395 exec_runner.go:49] Run: systemctl --version
I0819 10:37:31.565927    2395 driver.go:287] Setting default libvirt URI to qemu:///system
I0819 10:37:31.571568    2395 out.go:105] ✨  Using the none driver based on existing profile
✨  Using the none driver based on existing profile
I0819 10:37:31.571645    2395 start.go:232] selected driver: none
I0819 10:37:31.571670    2395 start.go:638] validating driver "none" against &{Name:minikube KeepContext:false EmbedCerts:false MinikubeISO: KicBaseImage:gcr.io/k8s-minikube/kicbase:v0.0.11@sha256:6fee59db7d67ed8ae6835e4bcb02f32056dc95f11cb369c51e352b62dd198aa0 Memory:3100 CPUs:2 DiskSize:20000 VMDriver: Driver:none HyperkitVpnKitSock: HyperkitVSockPorts:[] DockerEnv:[] 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.18.3 ClusterName:minikube APIServerName:minikubeCA APIServerNames:[] APIServerIPs:[] DNSDomain:cluster.local ContainerRuntime:docker CRISocket: NetworkPlugin: FeatureGates: ServiceCIDR:10.96.0.0/12 ImageRepository: LoadBalancerStartIP: LoadBalancerEndIP: ExtraOptions:[{Component:kubelet Key:resolv-conf Value:/run/systemd/resolve/resolv.conf}] ShouldLoadCachedImages:false EnableDefaultCNI:false CNI: NodeIP: NodePort:8443 NodeName:} Nodes:[{Name:m01 IP:172.19.0.3 Port:8443 KubernetesVersion:v1.18.3 ControlPlane:true Worker:true}] Addons:map[] VerifyComponents:map[apiserver:true system_pods:true] StartHostTimeout:6m0s}
I0819 10:37:31.571813    2395 start.go:649] status for none: {Installed:true Healthy:true NeedsImprovement:false Error:<nil> Fix: Doc:}
I0819 10:37:31.571881    2395 start.go:1111] auto setting extra-config to "kubelet.resolv-conf=/run/systemd/resolve/resolv.conf".
I0819 10:37:31.572353    2395 start_flags.go:344] config:
{Name:minikube KeepContext:false EmbedCerts:false MinikubeISO: KicBaseImage:gcr.io/k8s-minikube/kicbase:v0.0.11@sha256:6fee59db7d67ed8ae6835e4bcb02f32056dc95f11cb369c51e352b62dd198aa0 Memory:3100 CPUs:2 DiskSize:20000 VMDriver: Driver:none HyperkitVpnKitSock: HyperkitVSockPorts:[] DockerEnv:[] 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.18.3 ClusterName:minikube APIServerName:minikubeCA APIServerNames:[] APIServerIPs:[] DNSDomain:cluster.local ContainerRuntime:docker CRISocket: NetworkPlugin: FeatureGates: ServiceCIDR:10.96.0.0/12 ImageRepository: LoadBalancerStartIP: LoadBalancerEndIP: ExtraOptions:[{Component:kubelet Key:resolv-conf Value:/run/systemd/resolve/resolv.conf}] ShouldLoadCachedImages:false EnableDefaultCNI:false CNI: NodeIP: NodePort:8443 NodeName:} Nodes:[{Name:m01 IP:172.19.0.3 Port:8443 KubernetesVersion:v1.18.3 ControlPlane:true Worker:true}] Addons:map[] VerifyComponents:map[apiserver:true system_pods:true] StartHostTimeout:6m0s}
I0819 10:37:31.578925    2395 out.go:105] πŸ‘  Starting control plane node minikube in cluster minikube
πŸ‘  Starting control plane node minikube in cluster minikube
I0819 10:37:31.579124    2395 profile.go:150] Saving config to /root/.minikube/profiles/minikube/config.json ...
I0819 10:37:31.579638    2395 cache.go:181] Successfully downloaded all kic artifacts
I0819 10:37:31.579816    2395 start.go:244] acquiring machines lock for minikube: {Name:mka00e65579c2b557a802898fd1cf03ec4ab30a1 Clock:{} Delay:500ms Timeout:15m0s Cancel:<nil>}
I0819 10:37:31.580304    2395 start.go:248] acquired machines lock for "minikube" in 290.304Β΅s
I0819 10:37:31.580391    2395 start.go:89] Skipping create...Using existing machine configuration
I0819 10:37:31.580519    2395 fix.go:53] fixHost starting: m01
W0819 10:37:31.580788    2395 none.go:130] unable to get port: "minikube" does not appear in /root/.kube/config
I0819 10:37:31.581145    2395 api_server.go:146] Checking apiserver status ...
I0819 10:37:31.581238    2395 exec_runner.go:49] Run: sudo pgrep -xnf kube-apiserver.*minikube.*
W0819 10:37:31.605356    2395 api_server.go:150] stopped: unable to get apiserver pid: sudo pgrep -xnf kube-apiserver.*minikube.*: exit status 1
stdout:

stderr:
I0819 10:37:31.605412    2395 system_pods.go:161] Checking kubelet status ...
I0819 10:37:31.605462    2395 exec_runner.go:49] Run: sudo systemctl is-active --quiet service kubelet
I0819 10:37:31.617634    2395 fix.go:105] recreateIfNeeded on minikube: state=Stopped err=<nil>
W0819 10:37:31.617665    2395 fix.go:131] unexpected machine state, will restart: <nil>
I0819 10:37:31.627583    2395 out.go:105] πŸ”„  Restarting existing none bare metal machine for "minikube" ...
πŸ”„  Restarting existing none bare metal machine for "minikube" ...
I0819 10:37:31.628738    2395 profile.go:150] Saving config to /root/.minikube/profiles/minikube/config.json ...
I0819 10:37:31.628999    2395 start.go:207] post-start starting for "minikube" (driver="none")
I0819 10:37:31.629061    2395 start.go:217] creating required directories: [/etc/kubernetes/addons /etc/kubernetes/manifests /var/tmp/minikube /var/lib/minikube /var/lib/minikube/certs /var/lib/minikube/images /var/lib/minikube/binaries /tmp/gvisor /usr/share/ca-certificates /etc/ssl/certs]
I0819 10:37:31.629175    2395 exec_runner.go:49] Run: sudo mkdir -p /etc/kubernetes/addons /etc/kubernetes/manifests /var/tmp/minikube /var/lib/minikube /var/lib/minikube/certs /var/lib/minikube/images /var/lib/minikube/binaries /tmp/gvisor /usr/share/ca-certificates /etc/ssl/certs
I0819 10:37:31.641300    2395 main.go:115] libmachine: Couldn't set key PRIVACY_POLICY_URL, no corresponding struct field found
I0819 10:37:31.641382    2395 main.go:115] libmachine: Couldn't set key VERSION_CODENAME, no corresponding struct field found
I0819 10:37:31.641419    2395 main.go:115] libmachine: Couldn't set key UBUNTU_CODENAME, no corresponding struct field found
I0819 10:37:31.650777    2395 out.go:105] ℹ️  OS release is Ubuntu 20.04.1 LTS
ℹ️  OS release is Ubuntu 20.04.1 LTS
I0819 10:37:31.650881    2395 filesync.go:118] Scanning /root/.minikube/addons for local assets ...
I0819 10:37:31.650945    2395 filesync.go:118] Scanning /root/.minikube/files for local assets ...
I0819 10:37:31.651034    2395 start.go:210] post-start completed in 21.963691ms
I0819 10:37:31.651081    2395 fix.go:92] none is local, skipping auth/time setup (requires ssh)
I0819 10:37:31.651097    2395 fix.go:55] fixHost completed within 70.580236ms
I0819 10:37:31.651130    2395 start.go:76] releasing machines lock for "minikube", held for 70.759839ms
I0819 10:37:31.651632    2395 exec_runner.go:49] Run: sudo systemctl is-active --quiet service containerd
I0819 10:37:31.651747    2395 exec_runner.go:49] Run: curl -sS -m 2 https://k8s.gcr.io/
I0819 10:37:31.665783    2395 exec_runner.go:49] Run: sudo systemctl daemon-reload
I0819 10:37:31.884481    2395 exec_runner.go:49] Run: sudo systemctl start docker
I0819 10:37:31.896941    2395 exit.go:58] WithError(Failed to enable container runtime)=sudo systemctl start docker: exit status 5
stdout:

stderr:
Failed to start docker.service: Unit docker.service not found.
 called from:
goroutine 1 [running]:
runtime/debug.Stack(0xc0000d8f20, 0x1b9e7a3, 0x9)
        /usr/local/go/src/runtime/debug/stack.go:24 +0x9d
k8s.io/minikube/pkg/minikube/exit.WithError(0x1bccd25, 0x22, 0x1ecfd20, 0xc0002747c0)
        /app/pkg/minikube/exit/exit.go:58 +0x34
k8s.io/minikube/pkg/minikube/node.configureRuntimes(0x7f376de13228, 0x2d1e7e0, 0xc0008c98a8, 0x8, 0x0, 0x0, 0x0, 0xc0008fe000, 0x6b, 0xc1c, ...)
        /app/pkg/minikube/node/start.go:275 +0x24e
k8s.io/minikube/pkg/minikube/node.Start(0x1f0eb40, 0x2d1e7e0, 0x1, 0x1f31560, 0xc0001aae40, 0xc00010f260, 0xc0003f1180, 0xc0001aac40, 0xc000471cb0, 0x1f31501, ...)
        /app/pkg/minikube/node/start.go:91 +0x1bd
k8s.io/minikube/cmd/minikube/cmd.startWithDriver(0x2cd78c0, 0x1f0eb40, 0x2d1e7e0, 0x1, 0x1f31560, 0xc0001aae40, 0xc00010f260, 0xc0003f1180, 0xc0001aac40, 0xc000471cb0, ...)
        /app/cmd/minikube/cmd/start.go:298 +0x7c
k8s.io/minikube/cmd/minikube/cmd.runStart(0x2cd78c0, 0xc00084e660, 0x0, 0x3)
        /app/cmd/minikube/cmd/start.go:218 +0x5c0
github.com/spf13/cobra.(*Command).execute(0x2cd78c0, 0xc00084e630, 0x3, 0x3, 0x2cd78c0, 0xc00084e630)
        /go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:846 +0x29d
github.com/spf13/cobra.(*Command).ExecuteC(0x2cd6900, 0x0, 0x1, 0xc0003a7a20)
        /go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:950 +0x349
github.com/spf13/cobra.(*Command).Execute(...)
        /go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:887
k8s.io/minikube/cmd/minikube/cmd.Execute()
        /app/cmd/minikube/cmd/root.go:106 +0x72c
main.main()
        /app/cmd/minikube/main.go:71 +0x11f
W0819 10:37:31.897157    2395 out.go:151]

E0819 10:37:31.897221    2395 exit.go:76] &{ID:NONE_DOCKER_EXIT_5 Err:sudo systemctl start docker: exit status 5
stdout:

stderr:
Failed to start docker.service: Unit docker.service not found.
 Advice:Ensure that Docker is installed and healthy: Run 'sudo systemctl start docker' and 'journalctl -u docker'. Alternatively, select another value for --driver URL:https://minikube.sigs.k8s.io/docs/reference/drivers/none Issues:[5532] ShowIssueLink:false}
W0819 10:37:31.897572    2395 out.go:151] ❌  [NONE_DOCKER_EXIT_5] Failed to enable container runtime sudo systemctl start docker: exit status 5
stdout:

stderr:
Failed to start docker.service: Unit docker.service not found.

❌  [NONE_DOCKER_EXIT_5] Failed to enable container runtime sudo systemctl start docker: exit status 5
stdout:

stderr:
Failed to start docker.service: Unit docker.service not found.

W0819 10:37:31.897676    2395 out.go:151] πŸ’‘  Suggestion: Ensure that Docker is installed and healthy: Run 'sudo systemctl start docker' and 'journalctl -u docker'. Alternatively, select another value for --driver
πŸ’‘  Suggestion: Ensure that Docker is installed and healthy: Run 'sudo systemctl start docker' and 'journalctl -u docker'. Alternatively, select another value for --driver
W0819 10:37:31.897704    2395 out.go:151] πŸ“˜  Documentation: https://minikube.sigs.k8s.io/docs/reference/drivers/none
πŸ“˜  Documentation: https://minikube.sigs.k8s.io/docs/reference/drivers/none
W0819 10:37:31.897732    2395 out.go:151] ⁉️   Related issue: https://github.com/kubernetes/minikube/issues/5532
⁉️   Related issue: https://github.com/kubernetes/minikube/issues/5532

@prasadkatti
Copy link
Contributor

You are using the none driver. Do you have docker installed?

@a-dyakov-mercuryo
Copy link

@prasadkatti docker installed only on host machine. On WSL2 machine, for example docker <command> works fine, but there is no docker service

@raimundogomes
Copy link

raimundogomes commented Aug 30, 2020

I have the same problem when I try install minikube in (WSL+Docker + Kubernetes on the Windows Desktop)

Installation instructions:
wsl-docker-kubernetes-on-the-windows-desktop

Error message:
`/usr/local/bin$ sudo minikube start --driver=none
πŸ˜„ minikube v1.12.3 on Ubuntu 18.04
✨ Using the none driver based on existing profile
πŸ‘ Starting control plane node minikube in cluster minikube
πŸ”„ Restarting existing none bare metal machine for "minikube" ...
ℹ️ OS release is Ubuntu 18.04.4 LTS

E0830 19:58:47.631488 876 exit.go:76] &{ID:NONE_DOCKER_EXIT_5 Err:sudo systemctl start docker: exit status 5
stdout:

stderr:
Failed to start docker.service: Unit docker.service not found.
Advice:Ensure that Docker is installed and healthy: Run 'sudo systemctl start docker' and 'journalctl -u docker'. Alternatively, select another value for --driver URL:https://minikube.sigs.k8s.io/docs/reference/drivers/none Issues:[5532] ShowIssueLink:false}
❌ [NONE_DOCKER_EXIT_5] Failed to enable container runtime sudo systemctl start docker: exit status 5
stdout:

stderr:
Failed to start docker.service: Unit docker.service not found.

πŸ’‘ Suggestion: Ensure that Docker is installed and healthy: Run 'sudo systemctl start docker' and 'journalctl -u docker'. Alternatively, select another value for --driver
πŸ“˜ Documentation: https://minikube.sigs.k8s.io/docs/reference/drivers/none
⁉️ Related issue: https://github.com/kubernetes/minikube/issues/5532`

When comand with systemctl
:/usr/local/bin$ sudo systemctl start docker Failed to start docker.service: Unit docker.service not found.

Apparently the problem is how the "systemctl" command is mapping the docker service. docker is working normally.
But the docker folders are in locations other than the default:
/mnt/wsl$ ls docker-desktop docker-desktop-bind-mounts docker-desktop-data

@avinashs24
Copy link

Same issue here. I'm following this blog . I have Docker for windows with WSL Integration enabled. With this, there is no need to install docker locally in the WSL. I'm able to use docker in my Ubuntu WSL straightaway after enabling it in Docker for windows.
However when setting kubernetes minkube, after the Systemd step when we start minikube, it fails with the error -
Failed to restart docker.service: Unit docker.service not found.

@Grompot77
Copy link

Grompot77 commented Sep 27, 2020

I have been following the same blog post, even did a brand new ubuntu instance with wsl2, not the store one, same problem. Even tried to use minikube v1.10.1 which is around the same period when the blog post was done. Then tried to run it with root, still no luck. Hopefully Nuno can come to us on how he got it to work with Docker Desktop for windows.

Please note that we are trying to follow https://kubernetes.io/blog/2020/05/21/wsl-docker-kubernetes-on-the-windows-desktop/, this article is very specific and it does not require the docker driver to be installed on the ubuntu distro.

I have tried to follow the exact blog post, same Ubuntu, Docker Desktop and minikube versions, it just does not work ...

@shayanjalil
Copy link

Has anyone found a solution to this so far? I'm still stuck 😞

@blueelvis
Copy link
Contributor

/assign

@priyawadhwa priyawadhwa added the priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete. label Oct 28, 2020
@KamranShahid
Copy link

KamranShahid commented Nov 27, 2020

Basically Article is bit old. there are reference to each package links in which i have installed the latest one. then minukube installation step should be follow from following article https://minikube.sigs.k8s.io/docs/start/ instead of the one given in https://kubernetes.io/blog/2020/05/21/wsl-docker-kubernetes-on-the-windows-desktop/
All works perfectly then

@priyawadhwa priyawadhwa changed the title Failed to enable container runtime sudo systemctl start docker: exit status 5 None driver doesn't work on WSL Jan 6, 2021
@medyagh medyagh changed the title None driver doesn't work on WSL update kubernetes blog post to use docker driver instead of none Mar 10, 2021
@medyagh medyagh added good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. kind/documentation Categorizes issue or PR as related to documentation. labels Mar 10, 2021
@medyagh
Copy link
Member

medyagh commented Mar 10, 2021

I suggest this blog post https://kubernetes.io/blog/2020/05/21/wsl-docker-kubernetes-on-the-windows-desktop/#minikube-updating-the-host

to be updated to use docker driver,
anyone like to take this issue and update the kuberentes docs to use docker driver instead of none ?

@KamranShahid
@prasadkatti
@idvoretskyi

@medyagh
Copy link
Member

medyagh commented Mar 10, 2021

if anyone likes to take this issue, please reffer to this issue on the kuberetnes website
kubernetes/website#26998

@spowelljr spowelljr added long-term-support Long-term support issues that can't be fixed in code and removed triage/long-term-support labels May 19, 2021
@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle stale
  • Mark this issue or PR as rotten with /lifecycle rotten
  • Close this issue or PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Aug 17, 2021
@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle rotten
  • Close this issue or PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Sep 16, 2021
@sharifelgamal sharifelgamal added lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. and removed lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. labels Sep 22, 2021
@spowelljr spowelljr added priority/backlog Higher priority than priority/awaiting-more-evidence. and removed priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete. labels Jan 19, 2022
@afbjorklund
Copy link
Collaborator

afbjorklund commented Jan 2, 2023

Using the "none" driver has been the standard in katacoda for years, and works fine - unless you want to use multinode.

The original warnings (above) are just because WSL didn't support systemd at the time, and the code looked for it (wrong).

You will need to install Docker anyway, as the cluster container runtime, but that is something of a different story.

And currently you also need to install conntrack/crictl/cni-plugins/cri-dockerd, but that might be improved soon.

@afbjorklund afbjorklund removed kind/support Categorizes issue or PR as a support question. good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. long-term-support Long-term support issues that can't be fixed in code labels Jan 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
co/none-driver kind/documentation Categorizes issue or PR as related to documentation. lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. priority/backlog Higher priority than priority/awaiting-more-evidence.
Projects
None yet
Development

No branches or pull requests