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

Range of CPUs is from 0.01 to 1.00, as there are only 1 CPUs available #7850

Closed
vinodkamisetti opened this issue Apr 22, 2020 · 2 comments
Closed
Labels
co/docker-driver Issues related to kubernetes in container kind/support Categorizes issue or PR as a support question. needs-solution-message Issues where where offering a solution for an error would be helpful

Comments

@vinodkamisetti
Copy link

Steps to reproduce the issue:

  1. Failed to start docker container. "minikube start" may fix it.: recreate: creating host: create: creating: create kic node: create container: failed args: [run -d -t --privileged --security-opt seccomp=unconfined --tmpfs /tmp --tmpfs /run -v /lib/modules:/lib/modules:ro --hostname minikube --name minikube --label created_by.minikube.sigs.k8s.io=true --label name.minikube.sigs.k8s.io=minikube --label role.minikube.sigs.k8s.io= --label mode.minikube.sigs.k8s.io=minikube --volume minikube:/var --cpus=2 --memory=983mb --expose 8443 --publish=127.0.0.1::8443 --publish=127.0.0.1::22 --publish=127.0.0.1::2376 gcr.io/k8s-minikube/kicbase:v0.0.8@sha256:2f3380ebf1bb0c75b0b47160fd4e61b7b8fef0f1f32f9def108d3eada50a7a81] output: docker: Error response from daemon: Range of CPUs is from 0.01 to 1.00, as there are only 1 CPUs available.
    See 'docker run --help'.
    : exit status 125

Full output of failed command:

Full output of minikube start command used, if not already included:

Optional: Full output of minikube logs command:

@afbjorklund
Copy link
Collaborator

You need to have 2 CPU for Kubernetes, there is supposed to be a check for this though.

@afbjorklund afbjorklund added co/docker-driver Issues related to kubernetes in container needs-solution-message Issues where where offering a solution for an error would be helpful kind/support Categorizes issue or PR as a support question. labels Apr 22, 2020
@afbjorklund
Copy link
Collaborator

It also needs more memory (than 983mb), so maybe that check can be fixed too ?

@tstromberg tstromberg changed the title minikube not starting Range of CPUs is from 0.01 to 1.00, as there are only 1 CPUs available May 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
co/docker-driver Issues related to kubernetes in container kind/support Categorizes issue or PR as a support question. needs-solution-message Issues where where offering a solution for an error would be helpful
Projects
None yet
Development

No branches or pull requests

3 participants