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

Can't start minikube inside docker network #13729

Closed
dazzzed opened this issue Feb 26, 2022 · 12 comments
Closed

Can't start minikube inside docker network #13729

dazzzed opened this issue Feb 26, 2022 · 12 comments
Labels
kind/support Categorizes issue or PR as a support question. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.

Comments

@dazzzed
Copy link

dazzzed commented Feb 26, 2022

What Happened?

I'm trying to start minikube on ubuntu 18.04 inside nginx proxy manager docker network in order to setup some kubernetes services and manage the domain names and the proxy hosts in the nginx proxy manager platform.

so I have nginxproxymanager_default docker network and when I run minikube start --network=nginxproxymanager_default I get

Exiting due to GUEST_PROVISION: Failed to start host: can't create with that IP, address already in use

what might I been doing wrong?

Attach the log file

🤷 The control plane node "" does not exist.
👉 To start a cluster, run: "minikube start"

Operating System

No response

Driver

No response

@RA489
Copy link

RA489 commented Feb 28, 2022

/kind support

@k8s-ci-robot k8s-ci-robot added the kind/support Categorizes issue or PR as a support question. label Feb 28, 2022
@zhan9san
Copy link
Contributor

zhan9san commented Mar 7, 2022

Hi @dazzzed

This issue can be reproduced in v1.25.2 on Ubuntu 21.04.

Here is a workaround.

Assume gateway IP is 172.18.0.1.

Minikube will try to use 172.18.0.2(gateway + 1), so if you start Minikube container first and then other containers in nginxproxymanager_default . The minikube contaienr will take 172.18.0.2 as its IP address

@zhan9san
Copy link
Contributor

zhan9san commented Mar 9, 2022

Hi team,

I just comment the static IP code and compile a new minikube binary. It works well.

Do you have concerns if static IP is removed?
If no, I'd like to continue working on this feature.

Does static Minikube container IP have any scenarios?

How to test

  1. Create a test network in docker
$ docker network create test
ae984c8b281dc1ab2209f9df202557c215fe6d923c33b4eb78c521d0706fcc1e
  1. Run a container, in which the gateway + 1 IP address("IPv4Address": "172.19.0.2/16")will be assigned
$ docker run --rm -d --network=test test-nginx
$ docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' test-nginx
172.19.0.2
  1. Start Minikube

As the static IP code is commented, the minikube container will be assigned an available IP address automatically

$ ./out/minikube start --network=test --driver=docker -v=8 --alsologtostderr
$ docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' minikube
172.19.0.3
$ $ ./out/minikube ip
172.19.0.3

@klaases
Copy link
Contributor

klaases commented Apr 13, 2022

Hi @zhan9san, I see that this functionality may work for some scenarios, but perhaps not for all. As @medyagh has suggested in #13766, it might make more sense for this option to become available as an optional feature.

@zhan9san
Copy link
Contributor

Hi @klaases

Thank you for your attention.

I'd appreciate it if you could explain the detailed scenarios.

IMHO, there is no conflict between #13766 and #13050.

remove static ip in docker and podman #13766

It does in the same manner as Docker does. By default a container would be assigned an available IP from DHCP pool. Instead, currently Minikube would generate an IP address which is gateway + 1, and it doesn't care about whether the IP is available.

wip: new flag --static-ip to allow random IP #13050

This feature is to make Minikube has ability to assign a static IP.

@sharifelgamal
Copy link
Collaborator

Having a static IP on by default is useful so minikube can survive things like the user's laptop going to sleep and the like. It seems like the issue is less about minikube assigning a static IP and how the static IP is determined. Getting rid of the feature isn't the answer, but fixing it is definitely a good option.

@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 16, 2022
@RA489
Copy link

RA489 commented Aug 17, 2022

/remove-lifecycle stale

@k8s-ci-robot k8s-ci-robot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Aug 17, 2022
@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 Nov 15, 2022
@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 Dec 15, 2022
@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 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:

  • Reopen this issue with /reopen
  • Mark this issue as fresh with /remove-lifecycle rotten
  • Offer to help out with Issue Triage

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

/close not-planned

@k8s-ci-robot k8s-ci-robot closed this as not planned Won't fix, can't repro, duplicate, stale Jan 14, 2023
@k8s-ci-robot
Copy link
Contributor

@k8s-triage-robot: Closing this issue, marking it as "Not Planned".

In response to this:

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

This bot triages issues 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:

  • Reopen this issue with /reopen
  • Mark this issue as fresh with /remove-lifecycle rotten
  • Offer to help out with Issue Triage

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

/close not-planned

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/support Categorizes issue or PR as a support question. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants