系统相关
首页 > 系统相关> > ubuntu安装minikube

ubuntu安装minikube

作者:互联网

  1. 创建root账号
sudo passwd
  1. 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
  1. 安装docker
curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun
  1. 安装minikube
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
sudo install minikube-linux-amd64 /usr/local/bin/minikube
  1. 如果报错The “docker“ driver should not be used with root privileges,则需要在非root的用户下执行,$USER即非root用户
sudo usermod -aG docker $USER && newgrp docker
  1. 启动
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