before installing any software, you need to update the system you are working on. here, we use Ubuntu OS and the commands are:
sudo apt-get update -y
follow the documentation or copy paste below installation steps
sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update -y
sudo apt-get docker.io -y
Now, with docker setup move on installing Minikube on your /ubuntu system. First download the latest Minikube binary using wget command:
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
sudo install minikube-linux-amd64 /usr/local/bin/minikube && rm minikube-linux-amd64
then give the file executive permission using the chmod command:
sudo chmod 755 /usr/local/bin/minikube
3. finally, verify you have successfully installed minikube by checking the version of the software. command:
minikube version
you can install kubectl binary with curl on linux by downloading the latest release with the command :
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
kubectl version
sudo usermod -aG docker $USER && newgrp docker
minikube start
minikube status
minikube stop
minikube start --driver=docker
to delete the container command:
minikube delete