Random "Exiting due to DRV_DOCKER_NOT_RUNNING" errors during 'minikube start'

I recently started encountering Exiting due to DRV_DOCKER_NOT_RUNNING errors in my pipelines. I didn’t make any changes in the CI configuration. Re-running the pipeline almost always works without any error. But it causes a lot of extra time. Anyone experienced similar docker-related issues? Thanks.

Machine config:

    machine:
      image: ubuntu-2004:2022.07.1
      docker_layer_caching: true

Command:

curl -LO https://storage.googleapis.com/minikube/releases/v1.27.0/minikube-linux-amd64
sudo install minikube-linux-amd64 /usr/local/bin/minikube
minikube start

Error log:

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 73.0M  100 73.0M    0     0   132M      0 --:--:-- --:--:-- --:--:--  131M
* minikube v1.27.0 on Ubuntu 20.04
! Kubernetes 1.25.0 has a known issue with resolv.conf. minikube is using a workaround that should work for most use cases.
! For more information, see: https://github.com/kubernetes/kubernetes/issues/112135
* minikube 1.27.1 is available! Download it: https://github.com/kubernetes/minikube/releases/tag/v1.27.1
* To disable this notice, run: 'minikube config set WantUpdateNotification false'

* Unable to pick a default driver. Here is what was considered, in preference order:
  - docker: Not healthy: deadline exceeded running "docker version --format {{.Server.Os}}-{{.Server.Version}}": signal: killed
  - docker: Suggestion: Restart the Docker service <https://minikube.sigs.k8s.io/docs/drivers/docker/>
* Alternatively you could install one of these drivers:
  - kvm2: Not installed: exec: "virsh": executable file not found in $PATH
  - podman: Not installed: exec: "podman": executable file not found in $PATH
  - vmware: Not installed: exec: "docker-machine-driver-vmware": executable file not found in $PATH
  - virtualbox: Not installed: unable to find VBoxManage in $PATH
  - qemu2: Not installed: exec: "qemu-system-x86_64": executable file not found in $PATH

X Exiting due to DRV_DOCKER_NOT_RUNNING: Found docker, but the docker service isn't running. Try restarting the docker service.


Exited with code exit status 55
CircleCI received exit code 55

Hello

I have done some testing around this and if you add a sleep in between each of the commands it resolves the issue.

Would it be possible to try using the code below to see if this resolves the issue.

    - run:
        command: |-
          curl -LO https://storage.googleapis.com/minikube/releases/v1.27.0/minikube-linux-amd64
          sleep 5
          sudo install minikube-linux-amd64 /usr/local/bin/minikube
          sleep 5
          minikube start

Kind Regards
Owen Oliver

1 Like

Thank you owenjoliver for the reply and the test. I’ll apply it and observe the next runs.

It didn’t fix the issue for us. I still encounter the same error occasionally after adding the sleep 5 commands.