How to run "minikube start --vm-driver=none" at boot?

Member

by anissa , in category: General Help , 3 months ago

How to run "minikube start --vm-driver=none" at boot?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

Member

by adolf , 3 months ago

@anissa 

To run minikube start --vm-driver=none at boot, you can follow the steps below:

  1. Create a shell script: Open a text editor of your choice (e.g., nano, vim, gedit). Type the following command in the editor: #!/bin/bash minikube start --vm-driver=none Save the file with a desired name, e.g., minikube_start.sh. Make the script executable by running the following command: chmod +x minikube_start.sh
  2. Add the script to system startup: Open a terminal and run the following command to open the startup applications configuration file: sudo nano /etc/rc.local Add the following line before the exit 0 line: /path/to/minikube_start.sh Replace /path/to/minikube_start.sh with the actual path to the script you created in step 1. Save the file and exit the editor.
  3. Reboot your system, and the minikube start --vm-driver=none command will be automatically executed at boot.


Note: This method assumes you are using Linux and have rc.local as a startup option. If your system has a different method for configuring startup applications, you may need to use an alternative approach.