Minikube: Error getting IP during provisioning

Created on 8 Jun 2020  ยท  10Comments  ยท  Source: kubernetes/minikube


Steps to reproduce the issue:

  1. After install minikube following this link https://kubernetes.io/docs/tasks/tools/install-minikube/
  2. Then execute minikube start --driver=docker, then error above shown.
๐Ÿ˜„  minikube v1.11.0 on Ubuntu 20.04
โœจ  Using the docker driver based on existing profile
๐Ÿ‘  Starting control plane node minikube in cluster minikube
๐Ÿƒ  Updating the running docker "minikube" container ...
๐Ÿคฆ  StartHost failed, but will try again: provision: Temporary Error: error getting ip during provisioning: IPs output should only be one line, got 2 lines
๐Ÿƒ  Updating the running docker "minikube" container ...
๐Ÿ˜ฟ  Failed to start docker container. "minikube start" may fix it: provision: Temporary Error: error getting ip during provisioning: IPs output should only be one line, got 2 lines

๐Ÿ’ฃ  error provisioning host: Failed to start host: provision: Temporary Error: error getting ip during provisioning: IPs output should only be one line, got 2 lines

๐Ÿ˜ฟ  minikube is exiting due to an error. If the above message is not useful, open an issue:
๐Ÿ‘‰  https://github.com/kubernetes/minikube/issues/new/choose
cdocker-driver good first issue help wanted kinsupport needs-solution-message olinux prioritimportant-longterm

Most helpful comment

I also had this problem , but on MacOs system.First I thought there was a problem about proxy, but after using minikube delete many times, I saw a message 'WARNING: Error loading config file: ~/.docker/config.json: EOF' . then I deleted this file by rm ~/.docker/config.json and then minikube delete and then start minikube again and it's going OK.

All 10 comments

@phua-actech
that is interesting ! I have not seen this before, apparantly the docker inspect hat returned two lines for the network IP !

is there anything special about your docker setup ? do you have an enabled docker swarm ?

do you mind sharing the full output of:

docker info

and also

docker inspect minikube

and also do you mind trying to paste the full output of

minikube start --driver=docker --alsologtostderr

I also had this problem , but on MacOs system.First I thought there was a problem about proxy, but after using minikube delete many times, I saw a message 'WARNING: Error loading config file: ~/.docker/config.json: EOF' . then I deleted this file by rm ~/.docker/config.json and then minikube delete and then start minikube again and it's going OK.

Hey @phua-gingsheng could you provide the output of:

cat ~/.docker/config.json

Am currently facing this issue too.

Same here. I am also seeing this error
$ minikube start --driver=docker
๐Ÿ˜„ minikube v1.12.2 on Ubuntu 20.04
โœจ Using the docker driver based on existing profile
๐Ÿ‘ Starting control plane node minikube in cluster minikube
๐Ÿ”„ Restarting existing docker container for "minikube" ...
๐Ÿคฆ StartHost failed, but will try again: IPs output should only be one line, got 2 lines
๐Ÿƒ Updating the running docker "minikube" container ...

๐Ÿ˜ฟ Failed to start docker container. "minikube start" may fix it: provision: Temporary Error: error getting ip during provisioning: IPs output should only be one line, got 2 lines

๐Ÿ’ฃ error provisioning host: Failed to start host: provision: Temporary Error: error getting ip during provisioning: IPs output should only be one line, got 2 lines

๐Ÿ˜ฟ minikube is exiting due to an error. If the above message is not useful, open an issue:
๐Ÿ‘‰ https://github.com/kubernetes/minikube/issues/new/choose

I also had this problem , but on MacOs system.First I thought there was a problem about proxy, but after using minikube delete many times, I saw a message 'WARNING: Error loading config file: ~/.docker/config.json: EOF' . then I deleted this file by rm ~/.docker/config.json and then minikube delete and then start minikube again and it's going OK.

Yes that worked.

Looks like we could add a solution message for this; if we see this error:

IPs output should only be one line, got 2 lines

suggest to the user that they fix their .docker/config and restart minikube.

If anyone would be interested in fixing this, feel free to take this issue by commenting /assign!

Will this suggestion work:
IPs output should only be one line, got %d lines. Please fix your ~/.docker/config file and restart minikube.

/assign

๐Ÿ˜„ minikube v1.15.1 on Ubuntu 18.04
โœจ Using the docker driver based on user configuration
๐Ÿ‘ Starting control plane node minikube in cluster minikube
๐Ÿšœ Pulling base image ...
๐Ÿ’พ Downloading Kubernetes v1.19.4 preload ...

preloaded-images-k8s-v6-v1.19.4-docker-overlay2-amd64.tar.lz4: 364.27 MiB
๐Ÿ”ฅ Creating docker container (CPUs=2, Memory=2200MB) ...
โœ‹ Stopping node "minikube" ...
๐Ÿ›‘ Powering off "minikube" via SSH ...
๐Ÿ”ฅ Deleting "minikube" in docker ...
๐Ÿคฆ StartHost failed, but will try again: creating host: create: provisioning: Temporary Error: error getting ip during provisioning: IPs output should only be one line, got 2 lines
๐Ÿ”ฅ Creating docker container (CPUs=2, Memory=2200MB) ...
๐Ÿ˜ฟ Failed to start docker container. Running "minikube delete" may fix it: creating host: create: provisioning: Temporary Error: error getting ip during provisioning: IPs output should only be one line, got 2 lines

โŒ Exiting due to GUEST_PROVISION: Failed to start host: creating host: create: provisioning: Temporary Error: error getting ip during provisioning: IPs output should only be one line, got 2 lines

๐Ÿ˜ฟ If the above advice does not help, please let us know:
๐Ÿ‘‰ https://github.com/kubernetes/minikube/issues/new/choose

i was also getting the same issue on ubuntu, docker. Found a way, follow the steps, hope it will help you.
steps:
cd ~/.docker
rm -rf config.json
minikube delete --profile=minikube
minikube start --driver=docker

Was this page helpful?
0 / 5 - 0 ratings