ubuntu安装minikube
作者:互联网
- 创建root账号
sudo passwd
- root用户下修改源
cp /etc/apt/sources.list /etc/apt/sources_bak.list # 备份
nano /etc/apt/sources.list
deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
apt-get update
- 安装docker
curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun
- 安装minikube
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
sudo install minikube-linux-amd64 /usr/local/bin/minikube
- 如果报错The “docker“ driver should not be used with root privileges,则需要在非root的用户下执行,$USER即非root用户
sudo usermod -aG docker $USER && newgrp docker
- 启动
minikube start
7. 安装kubectl
minikube kubectl -- get pods -A
alias kubectl="minikube kubectl --"
标签:安装,mirrors,restricted,multiverse,minikube,ubuntu,main,com 来源: https://blog.csdn.net/weixin_42196915/article/details/121680701