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

snap installations of docker do not work with --driver=none clusters #11064

Closed
grantholly opened this issue Apr 11, 2021 · 2 comments
Closed
Labels
co/none-driver co/runtime/docker Issues specific to a docker runtime kind/support Categorizes issue or PR as a support question.

Comments

@grantholly
Copy link

I installed docker with snap on ubuntu, and I think this installation of docker is incompatible with minikube with the --driver=none. From what I can tell, minkube tries to manage docker via a systemd unit, but snap doesn't create one. ¯\(ツ)

I'm not sure if this is supposed to work. I don't know if anyone has a unit file(s) to satisfy minikube for those who installed docker with snap.

A little about me:

$ docker --version
Docker version 19.03.13, build cd8016b6bc

$ cat /etc/os-release 
NAME="Ubuntu"
VERSION="20.04.2 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.2 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

$ minikube version
minikube version: v1.19.0
commit: 15cede53bdc5fe242228853e737333b09d4336b5

Below is some debug output

$ minikube start --driver=none
😄  minikube v1.19.0 on Ubuntu 20.04
✨  Using the none driver based on user configuration
👍  Starting control plane node minikube in cluster minikube
🤹  Running on localhost (CPUs=12, Memory=32110MB, Disk=906583MB) ...
ℹ️  OS release is Ubuntu 20.04.2 LTS

❌  Exiting due to RT_DOCKER_EXIT_5: 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


Steps to reproduce the issue:

  1. install docker with snap like snap install docker
  2. run minikube start with minikube start --driver=none
  3. act surprised that it doesnt work

Full output of failed command:

$ minikube start --driver=none --alsologtostderr
I0410 19:43:41.111170 1187154 out.go:278] Setting OutFile to fd 1 ...
I0410 19:43:41.111283 1187154 out.go:330] isatty.IsTerminal(1) = true
I0410 19:43:41.111296 1187154 out.go:291] Setting ErrFile to fd 2...
I0410 19:43:41.111307 1187154 out.go:330] isatty.IsTerminal(2) = true
I0410 19:43:41.111445 1187154 root.go:317] Updating PATH: /home/grant/.minikube/bin
W0410 19:43:41.111589 1187154 root.go:292] Error reading config file at /home/grant/.minikube/config/config.json: open /home/grant/.minikube/config/config.json: no such file or directory
I0410 19:43:41.111714 1187154 out.go:285] Setting JSON to false
I0410 19:43:41.137519 1187154 start.go:108] hostinfo: {"hostname":"devtop","uptime":2965361,"bootTime":1615143660,"procs":446,"os":"linux","platform":"ubuntu","platformFamily":"debian","platformVersion":"20.04","kernelVersion":"5.4.0-66-generic","kernelArch":"x86_64","virtualizationSystem":"kvm","virtualizationRole":"host","hostId":"8200cf0f-efda-4bf1-9c91-8431ff44223d"}
I0410 19:43:41.137620 1187154 start.go:118] virtualization: kvm host
I0410 19:43:41.144602 1187154 out.go:157] 😄  minikube v1.19.0 on Ubuntu 20.04
😄  minikube v1.19.0 on Ubuntu 20.04
I0410 19:43:41.144806 1187154 notify.go:126] Checking for updates...
I0410 19:43:41.145458 1187154 exec_runner.go:52] Run: systemctl --version
I0410 19:43:41.148294 1187154 driver.go:322] Setting default libvirt URI to qemu:///system
I0410 19:43:41.159190 1187154 out.go:157] ✨  Using the none driver based on existing profile
✨  Using the none driver based on existing profile
I0410 19:43:41.159229 1187154 start.go:276] selected driver: none
I0410 19:43:41.159244 1187154 start.go:718] validating driver "none" against &{Name:minikube KeepContext:false EmbedCerts:false MinikubeISO: KicBaseImage:gcr.io/k8s-minikube/kicbase:v0.0.20@sha256:0250dab3644403384bd54f566921c6b57138eecffbb861f9392feef9b2ec44f6 Memory:6000 CPUs:2 DiskSize:20000 VMDriver: Driver:none 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 KVMNUMACount:1 DockerOpt:[] DisableDriverMounts:false NFSShare:[] NFSSharesRoot:/nfsshares UUID: NoVTXCheck:false DNSProxy:false HostDNSResolver:true HostOnlyNicType:virtio NatNicType:virtio SSHIPAddress: SSHUser:root SSHKey: SSHPort:22 KubernetesConfig:{KubernetesVersion:v1.20.2 ClusterName:minikube Namespace:default APIServerName:minikubeCA APIServerNames:[] APIServerIPs:[] DNSDomain:cluster.local ContainerRuntime:docker CRISocket: NetworkPlugin: FeatureGates: ServiceCIDR:10.96.0.0/12 ImageRepository: LoadBalancerStartIP: LoadBalancerEndIP: CustomIngressCert: 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.1.45 Port:8443 KubernetesVersion:v1.20.2 ControlPlane:true Worker:true}] Addons:map[] VerifyComponents:map[apiserver:true system_pods:true] StartHostTimeout:6m0s ScheduledStop:<nil> ExposedPorts:[] ListenAddress: Network: MultiNodeRequested:false}
I0410 19:43:41.159402 1187154 start.go:729] status for none: {Installed:true Healthy:true Running:false NeedsImprovement:false Error:<nil> Reason: Fix: Doc:}
I0410 19:43:41.159441 1187154 start.go:1326] auto setting extra-config to "kubelet.resolv-conf=/run/systemd/resolve/resolv.conf".
I0410 19:43:41.163016 1187154 start_flags.go:270] config:
{Name:minikube KeepContext:false EmbedCerts:false MinikubeISO: KicBaseImage:gcr.io/k8s-minikube/kicbase:v0.0.20@sha256:0250dab3644403384bd54f566921c6b57138eecffbb861f9392feef9b2ec44f6 Memory:6000 CPUs:2 DiskSize:20000 VMDriver: Driver:none 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 KVMNUMACount:1 DockerOpt:[] DisableDriverMounts:false NFSShare:[] NFSSharesRoot:/nfsshares UUID: NoVTXCheck:false DNSProxy:false HostDNSResolver:true HostOnlyNicType:virtio NatNicType:virtio SSHIPAddress: SSHUser:root SSHKey: SSHPort:22 KubernetesConfig:{KubernetesVersion:v1.20.2 ClusterName:minikube Namespace:default APIServerName:minikubeCA APIServerNames:[] APIServerIPs:[] DNSDomain:cluster.local ContainerRuntime:docker CRISocket: NetworkPlugin: FeatureGates: ServiceCIDR:10.96.0.0/12 ImageRepository: LoadBalancerStartIP: LoadBalancerEndIP: CustomIngressCert: 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.1.45 Port:8443 KubernetesVersion:v1.20.2 ControlPlane:true Worker:true}] Addons:map[] VerifyComponents:map[apiserver:true system_pods:true] StartHostTimeout:6m0s ScheduledStop:<nil> ExposedPorts:[] ListenAddress: Network: MultiNodeRequested:false}
I0410 19:43:41.164826 1187154 out.go:157] 👍  Starting control plane node minikube in cluster minikube
👍  Starting control plane node minikube in cluster minikube
I0410 19:43:41.165025 1187154 profile.go:148] Saving config to /home/grant/.minikube/profiles/minikube/config.json ...
I0410 19:43:41.165259 1187154 cache.go:185] Successfully downloaded all kic artifacts
I0410 19:43:41.165298 1187154 start.go:313] acquiring machines lock for minikube: {Name:mk8896c77d15b37beee01681db4a15a0cde82267 Clock:{} Delay:500ms Timeout:13m0s Cancel:<nil>}
I0410 19:43:41.165462 1187154 start.go:317] acquired machines lock for "minikube" in 124.034µs
I0410 19:43:41.165491 1187154 start.go:93] Skipping create...Using existing machine configuration
I0410 19:43:41.165517 1187154 fix.go:55] fixHost starting: m01
W0410 19:43:41.165811 1187154 none.go:130] unable to get port: "minikube" does not appear in /home/grant/.kube/config
I0410 19:43:41.165837 1187154 api_server.go:146] Checking apiserver status ...
I0410 19:43:41.165895 1187154 exec_runner.go:52] Run: sudo pgrep -xnf kube-apiserver.*minikube.*
W0410 19:43:41.234313 1187154 api_server.go:150] stopped: unable to get apiserver pid: sudo pgrep -xnf kube-apiserver.*minikube.*: exit status 1
stdout:

stderr:
I0410 19:43:41.234414 1187154 exec_runner.go:52] Run: sudo systemctl is-active --quiet service kubelet
I0410 19:43:41.243049 1187154 fix.go:108] recreateIfNeeded on minikube: state=Stopped err=<nil>
W0410 19:43:41.243086 1187154 fix.go:134] unexpected machine state, will restart: <nil>
I0410 19:43:41.245055 1187154 out.go:157] 🔄  Restarting existing none bare metal machine for "minikube" ...
🔄  Restarting existing none bare metal machine for "minikube" ...
I0410 19:43:41.247518 1187154 profile.go:148] Saving config to /home/grant/.minikube/profiles/minikube/config.json ...
I0410 19:43:41.247785 1187154 start.go:267] post-start starting for "minikube" (driver="none")
I0410 19:43:41.247813 1187154 start.go:277] 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]
I0410 19:43:41.247908 1187154 exec_runner.go:52] 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
I0410 19:43:41.256371 1187154 main.go:126] libmachine: Couldn't set key PRIVACY_POLICY_URL, no corresponding struct field found
I0410 19:43:41.256401 1187154 main.go:126] libmachine: Couldn't set key VERSION_CODENAME, no corresponding struct field found
I0410 19:43:41.256416 1187154 main.go:126] libmachine: Couldn't set key UBUNTU_CODENAME, no corresponding struct field found
I0410 19:43:41.258217 1187154 out.go:157] ℹ️  OS release is Ubuntu 20.04.2 LTS
ℹ️  OS release is Ubuntu 20.04.2 LTS
I0410 19:43:41.258241 1187154 filesync.go:118] Scanning /home/grant/.minikube/addons for local assets ...
I0410 19:43:41.258282 1187154 filesync.go:118] Scanning /home/grant/.minikube/files for local assets ...
I0410 19:43:41.258310 1187154 start.go:270] post-start completed in 10.499387ms
I0410 19:43:41.258321 1187154 fix.go:95] none is local, skipping auth/time setup (requires ssh)
I0410 19:43:41.258331 1187154 fix.go:57] fixHost completed within 92.829047ms
I0410 19:43:41.258339 1187154 start.go:80] releasing machines lock for "minikube", held for 92.860115ms
I0410 19:43:41.258790 1187154 exec_runner.go:52] Run: sudo systemctl is-active --quiet service containerd
I0410 19:43:41.258954 1187154 exec_runner.go:52] Run: curl -sS -m 2 https://k8s.gcr.io/
I0410 19:43:41.269611 1187154 exec_runner.go:52] Run: /bin/bash -c "sudo mkdir -p /etc && printf %s "runtime-endpoint: unix:///var/run/dockershim.sock
image-endpoint: unix:///var/run/dockershim.sock
" | sudo tee /etc/crictl.yaml"
I0410 19:43:41.290780 1187154 exec_runner.go:52] Run: sudo systemctl daemon-reload
I0410 19:43:41.643772 1187154 exec_runner.go:52] Run: sudo systemctl start docker
I0410 19:43:41.663371 1187154 out.go:157] 

W0410 19:43:41.663580 1187154 out.go:222] ❌  Exiting due to RT_DOCKER_EXIT_5: sudo systemctl start docker: exit status 5
stdout:

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

❌  Exiting due to RT_DOCKER_EXIT_5: sudo systemctl start docker: exit status 5
stdout:

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

W0410 19:43:41.663830 1187154 out.go:222] 💡  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
W0410 19:43:41.663938 1187154 out.go:222] 📘  Documentation: https://minikube.sigs.k8s.io/docs/reference/drivers/none
📘  Documentation: https://minikube.sigs.k8s.io/docs/reference/drivers/none
W0410 19:43:41.664068 1187154 out.go:222] 🍿  Related issue: https://github.com/kubernetes/minikube/issues/5532
🍿  Related issue: https://github.com/kubernetes/minikube/issues/5532
I0410 19:43:41.666798 1187154 out.go:157] 


Optional: Full output of minikube logs command:

$ minikube logs

==> Audit <==
|---------|------|---------|------|---------|------------|----------|
| Command | Args | Profile | User | Version | Start Time | End Time |
|---------|------|---------|------|---------|------------|----------|
|---------|------|---------|------|---------|------------|----------|


==> Last Start <==
Log file created at: 2021/04/10 19:43:41
Running on machine: devtop
Binary: Built with gc go1.16 for linux/amd64
Log line format: [IWEF]mmdd hh:mm:ss.uuuuuu threadid file:line] msg
I0410 19:43:41.111170 1187154 out.go:278] Setting OutFile to fd 1 ...
I0410 19:43:41.111283 1187154 out.go:330] isatty.IsTerminal(1) = true
I0410 19:43:41.111296 1187154 out.go:291] Setting ErrFile to fd 2...
I0410 19:43:41.111307 1187154 out.go:330] isatty.IsTerminal(2) = true
I0410 19:43:41.111445 1187154 root.go:317] Updating PATH: /home/grant/.minikube/bin
W0410 19:43:41.111589 1187154 root.go:292] Error reading config file at /home/grant/.minikube/config/config.json: open /home/grant/.minikube/config/config.json: no such file or directory
I0410 19:43:41.111714 1187154 out.go:285] Setting JSON to false
I0410 19:43:41.137519 1187154 start.go:108] hostinfo: {"hostname":"devtop","uptime":2965361,"bootTime":1615143660,"procs":446,"os":"linux","platform":"ubuntu","platformFamily":"debian","platformVersion":"20.04","kernelVersion":"5.4.0-66-generic","kernelArch":"x86_64","virtualizationSystem":"kvm","virtualizationRole":"host","hostId":"8200cf0f-efda-4bf1-9c91-8431ff44223d"}
I0410 19:43:41.137620 1187154 start.go:118] virtualization: kvm host
I0410 19:43:41.144602 1187154 out.go:157] 😄  minikube v1.19.0 on Ubuntu 20.04
I0410 19:43:41.144806 1187154 notify.go:126] Checking for updates...
I0410 19:43:41.145458 1187154 exec_runner.go:52] Run: systemctl --version
I0410 19:43:41.148294 1187154 driver.go:322] Setting default libvirt URI to qemu:///system
I0410 19:43:41.159190 1187154 out.go:157] ✨  Using the none driver based on existing profile
I0410 19:43:41.159229 1187154 start.go:276] selected driver: none
I0410 19:43:41.159244 1187154 start.go:718] validating driver "none" against &{Name:minikube KeepContext:false EmbedCerts:false MinikubeISO: KicBaseImage:gcr.io/k8s-minikube/kicbase:v0.0.20@sha256:0250dab3644403384bd54f566921c6b57138eecffbb861f9392feef9b2ec44f6 Memory:6000 CPUs:2 DiskSize:20000 VMDriver: Driver:none 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 KVMNUMACount:1 DockerOpt:[] DisableDriverMounts:false NFSShare:[] NFSSharesRoot:/nfsshares UUID: NoVTXCheck:false DNSProxy:false HostDNSResolver:true HostOnlyNicType:virtio NatNicType:virtio SSHIPAddress: SSHUser:root SSHKey: SSHPort:22 KubernetesConfig:{KubernetesVersion:v1.20.2 ClusterName:minikube Namespace:default APIServerName:minikubeCA APIServerNames:[] APIServerIPs:[] DNSDomain:cluster.local ContainerRuntime:docker CRISocket: NetworkPlugin: FeatureGates: ServiceCIDR:10.96.0.0/12 ImageRepository: LoadBalancerStartIP: LoadBalancerEndIP: CustomIngressCert: 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.1.45 Port:8443 KubernetesVersion:v1.20.2 ControlPlane:true Worker:true}] Addons:map[] VerifyComponents:map[apiserver:true system_pods:true] StartHostTimeout:6m0s ScheduledStop:<nil> ExposedPorts:[] ListenAddress: Network: MultiNodeRequested:false}
I0410 19:43:41.159402 1187154 start.go:729] status for none: {Installed:true Healthy:true Running:false NeedsImprovement:false Error:<nil> Reason: Fix: Doc:}
I0410 19:43:41.159441 1187154 start.go:1326] auto setting extra-config to "kubelet.resolv-conf=/run/systemd/resolve/resolv.conf".
I0410 19:43:41.163016 1187154 start_flags.go:270] config:
{Name:minikube KeepContext:false EmbedCerts:false MinikubeISO: KicBaseImage:gcr.io/k8s-minikube/kicbase:v0.0.20@sha256:0250dab3644403384bd54f566921c6b57138eecffbb861f9392feef9b2ec44f6 Memory:6000 CPUs:2 DiskSize:20000 VMDriver: Driver:none 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 KVMNUMACount:1 DockerOpt:[] DisableDriverMounts:false NFSShare:[] NFSSharesRoot:/nfsshares UUID: NoVTXCheck:false DNSProxy:false HostDNSResolver:true HostOnlyNicType:virtio NatNicType:virtio SSHIPAddress: SSHUser:root SSHKey: SSHPort:22 KubernetesConfig:{KubernetesVersion:v1.20.2 ClusterName:minikube Namespace:default APIServerName:minikubeCA APIServerNames:[] APIServerIPs:[] DNSDomain:cluster.local ContainerRuntime:docker CRISocket: NetworkPlugin: FeatureGates: ServiceCIDR:10.96.0.0/12 ImageRepository: LoadBalancerStartIP: LoadBalancerEndIP: CustomIngressCert: 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.1.45 Port:8443 KubernetesVersion:v1.20.2 ControlPlane:true Worker:true}] Addons:map[] VerifyComponents:map[apiserver:true system_pods:true] StartHostTimeout:6m0s ScheduledStop:<nil> ExposedPorts:[] ListenAddress: Network: MultiNodeRequested:false}
I0410 19:43:41.164826 1187154 out.go:157] 👍  Starting control plane node minikube in cluster minikube
I0410 19:43:41.165025 1187154 profile.go:148] Saving config to /home/grant/.minikube/profiles/minikube/config.json ...
I0410 19:43:41.165259 1187154 cache.go:185] Successfully downloaded all kic artifacts
I0410 19:43:41.165298 1187154 start.go:313] acquiring machines lock for minikube: {Name:mk8896c77d15b37beee01681db4a15a0cde82267 Clock:{} Delay:500ms Timeout:13m0s Cancel:<nil>}
I0410 19:43:41.165462 1187154 start.go:317] acquired machines lock for "minikube" in 124.034µs
I0410 19:43:41.165491 1187154 start.go:93] Skipping create...Using existing machine configuration
I0410 19:43:41.165517 1187154 fix.go:55] fixHost starting: m01
W0410 19:43:41.165811 1187154 none.go:130] unable to get port: "minikube" does not appear in /home/grant/.kube/config
I0410 19:43:41.165837 1187154 api_server.go:146] Checking apiserver status ...
I0410 19:43:41.165895 1187154 exec_runner.go:52] Run: sudo pgrep -xnf kube-apiserver.*minikube.*
W0410 19:43:41.234313 1187154 api_server.go:150] stopped: unable to get apiserver pid: sudo pgrep -xnf kube-apiserver.*minikube.*: exit status 1
stdout:

stderr:
I0410 19:43:41.234414 1187154 exec_runner.go:52] Run: sudo systemctl is-active --quiet service kubelet
I0410 19:43:41.243049 1187154 fix.go:108] recreateIfNeeded on minikube: state=Stopped err=<nil>
W0410 19:43:41.243086 1187154 fix.go:134] unexpected machine state, will restart: <nil>
I0410 19:43:41.245055 1187154 out.go:157] 🔄  Restarting existing none bare metal machine for "minikube" ...
I0410 19:43:41.247518 1187154 profile.go:148] Saving config to /home/grant/.minikube/profiles/minikube/config.json ...
I0410 19:43:41.247785 1187154 start.go:267] post-start starting for "minikube" (driver="none")
I0410 19:43:41.247813 1187154 start.go:277] 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]
I0410 19:43:41.247908 1187154 exec_runner.go:52] 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
I0410 19:43:41.256371 1187154 main.go:126] libmachine: Couldn't set key PRIVACY_POLICY_URL, no corresponding struct field found
I0410 19:43:41.256401 1187154 main.go:126] libmachine: Couldn't set key VERSION_CODENAME, no corresponding struct field found
I0410 19:43:41.256416 1187154 main.go:126] libmachine: Couldn't set key UBUNTU_CODENAME, no corresponding struct field found
I0410 19:43:41.258217 1187154 out.go:157] ℹ️  OS release is Ubuntu 20.04.2 LTS
I0410 19:43:41.258241 1187154 filesync.go:118] Scanning /home/grant/.minikube/addons for local assets ...
I0410 19:43:41.258282 1187154 filesync.go:118] Scanning /home/grant/.minikube/files for local assets ...
I0410 19:43:41.258310 1187154 start.go:270] post-start completed in 10.499387ms
I0410 19:43:41.258321 1187154 fix.go:95] none is local, skipping auth/time setup (requires ssh)
I0410 19:43:41.258331 1187154 fix.go:57] fixHost completed within 92.829047ms
I0410 19:43:41.258339 1187154 start.go:80] releasing machines lock for "minikube", held for 92.860115ms
I0410 19:43:41.258790 1187154 exec_runner.go:52] Run: sudo systemctl is-active --quiet service containerd
I0410 19:43:41.258954 1187154 exec_runner.go:52] Run: curl -sS -m 2 https://k8s.gcr.io/
I0410 19:43:41.269611 1187154 exec_runner.go:52] Run: /bin/bash -c "sudo mkdir -p /etc && printf %s "runtime-endpoint: unix:///var/run/dockershim.sock
image-endpoint: unix:///var/run/dockershim.sock
" | sudo tee /etc/crictl.yaml"
I0410 19:43:41.290780 1187154 exec_runner.go:52] Run: sudo systemctl daemon-reload
I0410 19:43:41.643772 1187154 exec_runner.go:52] Run: sudo systemctl start docker
I0410 19:43:41.663371 1187154 out.go:157] 
W0410 19:43:41.663580 1187154 out.go:222] ❌  Exiting due to RT_DOCKER_EXIT_5: sudo systemctl start docker: exit status 5
stdout:

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

W0410 19:43:41.663830 1187154 out.go:222] 💡  Suggestion: Ensure that Docker is installed and healthy: Run 'sudo systemctl start docker' and 'journalctl -u docker'. Alternatively, select another value for --driver
W0410 19:43:41.663938 1187154 out.go:222] 📘  Documentation: https://minikube.sigs.k8s.io/docs/reference/drivers/none
W0410 19:43:41.664068 1187154 out.go:222] 🍿  Related issue: https://github.com/kubernetes/minikube/issues/5532

🤷  The control plane node must be running for this command
👉  To start a cluster, run: "minikube start"

@afbjorklund
Copy link
Collaborator

Please install docker using the regular method:

https://docs.docker.com/engine/install/ubuntu/

While it could be possible to add the systemd unit, there are no guarantees that this installation of docker would work...

https://docs.docker.com/config/daemon/systemd/#manually-create-the-systemd-unit-files

It should work using the system package (sudo apt install docker.io), but the vendor package is preferred: #10089

Details: https://kubernetes.io/docs/setup/production-environment/container-runtimes/#docker

@afbjorklund afbjorklund added co/none-driver co/runtime/docker Issues specific to a docker runtime kind/support Categorizes issue or PR as a support question. labels Apr 11, 2021
@ilya-zuyev
Copy link
Contributor

Going to close the issue. @grantholly feel free to reopen it if the problem still exists

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
co/none-driver co/runtime/docker Issues specific to a docker runtime kind/support Categorizes issue or PR as a support question.
Projects
None yet
Development

No branches or pull requests

3 participants