Difference between revisions of "Minikube on Linux"
Jump to navigation
Jump to search
(Created page with "# Install Docker Install minikube & prep ``` curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 sudo install minikube-linux-amd64 /usr/loca...") |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
# Install Docker | # Install Docker | ||
+ | ``` | ||
+ | snap install docker | ||
+ | ``` | ||
+ | |||
+ | or ce | ||
+ | ``` | ||
+ | sudo apt-get remove docker docker-engine docker.io containerd runc | true | ||
+ | sudo apt-get update | ||
+ | curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | ||
+ | sudo add-apt-repository \ | ||
+ | "deb [arch=amd64] https://download.docker.com/linux/ubuntu \ | ||
+ | $(lsb_release -cs) \ | ||
+ | stable" | ||
+ | sudo apt-get update | ||
+ | sudo apt-get install -y docker-ce docker-ce-cli containerd.io | ||
+ | ``` | ||
Install minikube & prep | Install minikube & prep | ||
Line 20: | Line 36: | ||
minikube delete | minikube delete | ||
rm -rf .minikube | rm -rf .minikube | ||
+ | ``` | ||
+ | |||
+ | ``` | ||
+ | snap install kubectl --classic | ||
+ | kubectl get pods | ||
``` | ``` |
Latest revision as of 00:28, 15 December 2021
Install Docker
snap install docker
or ce
sudo apt-get remove docker docker-engine docker.io containerd runc | true sudo apt-get update curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - sudo add-apt-repository \ "deb [arch=amd64] https://download.docker.com/linux/ubuntu \ $(lsb_release -cs) \ stable" sudo apt-get update sudo apt-get install -y docker-ce docker-ce-cli containerd.io
Install minikube & prep
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 sudo install minikube-linux-amd64 /usr/local/bin/minikube sudo adduser minikube sudo usermod -aG docker minikube sudo su - minikube
Start
minikube start --driver=docker
Delete
minikube delete rm -rf .minikube
snap install kubectl --classic kubectl get pods