minikube: minikube on driver docker not running using docker desktop vm

What Happened?

  • I run minikube start I get above logs.

image

I have tried multiple times I tried with driver virtualbox but failes because virtual box and docker desktop cannot run together ( because 2 VM cannot run together on Ubuntu)

minikube status gives this

image

I have tried

  • reinstallng minikube
  • restarting the minikube container
  • tried minikube delete --all and minikube start Not working in all the above cases.

Attach the log file

logs.txt

Operating System

Ubuntu

Driver

Docker

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 1
  • Comments: 23 (7 by maintainers)

Most upvoted comments

@prakharporwal @loyaltytrooper @mesketh @dishkakrauch @jodusan @zidanomar @Arun-N @gio-shara-code

Here’s a binary that has a fix I implemented (https://github.com/kubernetes/minikube/pull/15126) that should make minikube work with Docker Desktop Linux. Could some of you test it and confirm it works on your end, thanks.

curl -LO https://storage.googleapis.com/minikube-builds/15126/minikube-linux-amd64
chmod +x ./minikube-linux-amd64
./minikube-linux-amd64 delete
./minikube-linux-amd64 start

It will need code changes, before it will work (with Docker Desktop on Linux). There should be a warning, meanwhile.

The supported environment is Docker Engine on Linux (without the VM), as in https://docs.docker.com/engine/install/

It is documented here: https://minikube.sigs.k8s.io/docs/drivers/docker/

You can also use any other --vm driver, besides the docker driver.

I don’t think Docker Desktop (VM) has been tested on Ubuntu, only the open source (and native) Docker Engine…

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

There might be some hard-coded code paths, where only macOS and Windows expect to be using Docker Desktop.

// IsDockerDesktop checks if the driver is a Docker for Desktop (Docker on windows or MacOs)
// for linux and exotic archs, this will be false
func IsDockerDesktop(name string) bool {
        if IsDocker(name) {
                if runtime.GOOS == "darwin" || runtime.GOOS == "windows" {
                        return true
                }
        }
        return false
}

Hi @imflash217, this issue is specifically for Docker Desktop Linux. Since you’re using Docker Desktop macOS I’d recommend opening a new issue.

/assign ComradeProgrammer