Skip to content

Instantly share code, notes, and snippets.

@smc181002
Created June 22, 2022 16:56
Show Gist options
  • Save smc181002/1235ad58de32ab7d0c5a59e67b9fca41 to your computer and use it in GitHub Desktop.
Save smc181002/1235ad58de32ab7d0c5a59e67b9fca41 to your computer and use it in GitHub Desktop.

Minikube Installation

Install Docker

For Amazon Linux 2

  sudo yum install docker

Adding user to docker

After installing, the current user should be added to the docker group to access docker runtime

Note: Make sure not to use root user as minikube doesnt support root user to use docker runtime

sudo groupadd docker
sudo usermod -aG docker $USER

Now log back in for the changes to apply and press the below command for changes to apply

newgrp docker

minikube installation

Now we can install minikube with the below command

curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-latest.x86_64.rpm
sudo rpm -Uvh minikube-latest.x86_64.rpm

With the above command, we have the minikube installed.

now to start the minikube with docker as the driver, press the below command

minikube start --driver=docker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment