-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
none without Docker installed: sudo systemctl start docker: exit status 5 #5532
Comments
Which runtime did you install/want, and what was the entire output of that system to start command ? |
It seems to install OK, as long as docker has been started and selinux has been disabled.
There doesn't seem to be any Docker version for CentOS 8 yet, so it installs an older version:
$ sudo minikube start --vm-driver=none
😄 minikube v1.4.0 on Centos 8.0.1905
🤹 Running on localhost (CPUs=2, Memory=3780MB, Disk=17394MB) ...
ℹ️ OS release is CentOS Linux 8 (Core)
🐳 Preparing Kubernetes v1.16.0 on Docker 18.06.3-ce ...
🚜 Pulling images ...
🚀 Launching Kubernetes ...
🤹 Configuring local host environment ...
⚠️ The 'none' driver provides limited isolation and may reduce system security and reliability.
⚠️ For more information, see:
👉 https://minikube.sigs.k8s.io/docs/reference/drivers/none/
⚠️ kubectl and minikube configuration will be stored in /root
⚠️ To use kubectl or minikube commands as your own user, you may need to relocate them. For example, to overwrite your own settings, run:
▪ sudo mv /root/.kube /root/.minikube $HOME
▪ sudo chown -R $USER $HOME/.kube $HOME/.minikube
💡 This can also be done automatically by setting the env var CHANGE_MINIKUBE_NONE_USER=true
⌛ Waiting for: apiserver proxy etcd scheduler controller dns
🏄 Done! kubectl is now configured to use "minikube"
💡 For best results, install kubectl: https://kubernetes.io/docs/tasks/tools/install-kubectl/ |
You are correct, but I don't want to use Docker, I'm using RHEL8 and want to use Podman for containers management . |
It seems that the messages above ("exit status 5") are a symptom of the software not being installed:
|
It seems that there is no crio package for CentOS 8 yet, and for RHEL you are supposed to use OpenShift (rather than Kubernetes)... Podman can run containers, but for this you will need CRI-O. |
Regular Possibly it could be the old version used (1.0.2). But /etc/cni/net.d is empty ? |
@afbjorklund RHEL8 uses[1] runc as a Container runtime instead of Docker, and this is the argument I wanted to pass in the --container-runtime but it didn't work, minikube needs the container-runtime as a daemon while it is not a daemon in RHEL8 anymore. |
@afbjorklund root@centos8 net.d]# cat 87-podman-bridge.conflist
|
Docker also uses runc, so those are different types of runtimes... |
We should give a better error message, when trying to use the
It should say something happy like "you need to install a container runtime" (docker/containerd/cri-o) |
@afbjorklund |
@laith-leo : maybe this helps to explain: https://www.ianlewis.org/en/tag/container-runtime-series |
Yes, it was included with the podman package. No idea why the file when missing, first time. |
I was able to get CRI-O 1.15.2 running, but it took a lot of hand-holding to get it to actually start... There are no packages yet, so I used the static builds (some of them, like conmon, even missing!) You need:
This will definitely need some bundling, before it is usable. Hopefully some proper RPMS, too ? The current
See: cri-o/cri-o#2833 And podman is 1.0.2-dev |
I knew it that the only to get the things worked is by building and compling the things from source code which is not ideal! I would like to use a regular rpm package from a stable system repository. |
It does work OK, but you are right in that the repositories are not ready yet. The recommendation is to stay with CentOS 7 until they are... (later this year) You can always use the regular minikube iso, rather than running directly on your host. I haven’t tried, but both VirtualBox and libvirt (KVM) should work. |
And I found out why my podman installation had been broken, it was after the https://github.com/cri-o/cri-o/blob/master/tutorials/kubeadm.md
So that means uninstalling kubernetes breaks all CNI. Not cool. |
I swear that https://minikube.sigs.k8s.io/docs/reference/drivers/none/ used to say that Docker was the only supported container runtime for none, but it must have disappeared in a refactor. I would like to see #5549 get fixed though. |
Marking this as a bug because the user experience here is so bad.
Help wanted! |
we still need to do this |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: Closing this issue. In response to this:
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. |
Unable to start minikube in RHEL 8 based, due to the missing container runtime as a systemd service.
**[l@minikube ~]$ sudo minikube start --vm-driver=none
😄 minikube v1.4.0 on Centos 8.0.1905
💡 Tip: Use 'minikube start -p ' to create a new cluster, or 'minikube delete' to delete this one.
🔄 Starting existing none VM for "minikube" ...
⌛ Waiting for the host to be provisioned ...
💣 Failed to enable container runtime: running command: sudo systemctl start docker: exit status 5
😿 Sorry that minikube crashed. If this was unexpected, we would love to hear from you:
👉 https://github.com/kubernetes/minikube/issues/new/choose
[l@minikube ~]$ sudo minikube start --vm-driver=none --container-runtime=cri-o
😄 minikube v1.4.0 on Centos 8.0.1905
💡 Tip: Use 'minikube start -p ' to create a new cluster, or 'minikube delete' to delete this one.
🔄 Starting existing none VM for "minikube" ...
⌛ Waiting for the host to be provisioned ...
💣 Failed to enable container runtime: running command: sudo systemctl restart crio: exit status 5
😿 Sorry that minikube crashed. If this was unexpected, we would love to hear from you:
👉 https://github.com/kubernetes/minikube/issues/new/choose**:
CentOS Linux release 8.0.1905 (Core):
The text was updated successfully, but these errors were encountered: