Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

minikube install package using toolbox but the container does not internet conexion

I'm wondering how can install a package inside the minikube VM. I need some tools. I have tried the /bin/toolbox container, but It does not have internet conexion.

[root@docker-fedora-24 ~]# dnf update --verbose
cachedir: /var/cache/dnf
DNF version: 1.1.9
Cannot download 'https://mirrors.fedoraproject.org/metalink?repo=updates-released-f24&arch=x86_64': Cannot prepare internal mirrorlist: Curl error (6): Couldn't resolve host name for https://mirrors.fedoraproject.org/metalink?repo=updates-released-f24&arch=x86_64 [Could not resolve host: mirrors.fedoraproject.org].
Error: Failed to synchronize cache for repo 'updates'

I have tried the same toolbox script in my computer and it is properly working.

What configuration parameters I'm missing in minikube or systemd-nspaw? Or how can I cook a customized minikube VM?

Thanks a lot

like image 806
Jorgese Avatar asked Nov 29 '25 06:11

Jorgese


2 Answers

You can run minicube without VM on your local docker (if you use linux):

minikube start --vm-driver=none

A alternative, run toolbox with docker run --net=host ... to make network for container more transparent. Troubleshoot your internet connection with nslookup, traceroute/tracepath, curl -v, ifconfig. http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:Ch04:_Simple_Network_Troubleshooting#.WfY1xGi0OUk

like image 172
delfer Avatar answered Dec 01 '25 20:12

delfer


Minikube is not meant to be tweaked. The advised method is to prepare a helm chart for your application. As part of the helm chart you can add whatever tool you need in your docker file... Including make... Then you can install or upgrade your package in kubernetes/minikube using helm.

like image 43
AR1 Avatar answered Dec 01 '25 20:12

AR1