0

For example, I want to run minikube start.

First I created the following minikube.service file:

[Unit]
Description=Runs minikube on startup
After=vboxautostart-service.service vboxballoonctrl-service.service vboxdrv.service vboxweb-service.service

[Service] Type=forking ExecStart=/usr/local/bin/minikube start

[Install] WantedBy=multi-user.target

Then I enabled it and on the next reboot the systemd framework attempted to run it. However, it failed because apparently the minikube start command is not supposed to run as root:

The "virtualbox" driver should not be used with root privileges.

How can I run it under a non admin user?

mark
  • 795

1 Answers1

0

You can define which user have to be used bu the service. For example:

[Unit]
...

[Service] Type=forking ExecStart=/usr/local/bin/minikube start User=user1 Group=group1

...

kofemann
  • 5,151