[root@dev01 ~]# minikube start --driver=docker
* minikube v1.13.0 on Centos 8.1.1911
* Using the docker driver based on user configuration
* The "docker" driver should not be used with root privileges.
* If you are running minikube within a VM, consider using --driver=none:
* https://minikube.sigs.k8s.io/docs/reference/drivers/none/
X Exiting due to DRV_AS_ROOT: The "docker" driver should not be used with root privileges.
创建用户:
useradd tomx
passwd tomx 设置密码
su tomx 切换用户
[tomx@dev01 ~]$ minikube start --driver=docker
* minikube v1.13.0 on Centos 8.1.1911
* Using the docker driver based on user configuration
X Exiting due to PROVIDER_DOCKER_ERROR: "docker version --format -" exit status 1: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.40/version: dial unix /var/run/docker.sock: connect: permission denied
* Suggestion

最低0.47元/天 解锁文章
2189





