Docker Desktop π | Minikube π
Changes in Personal Docker Desktop has made it untenable. So, I am moving on.
Pre-requirements for this PC π₯
- Hyper-V
- Activated by the means of so doing
- Consider adding your user to the Windows group of Hyper-V Administrators for better allowances on the terminal sessions
- πββοΈ Start at Windows Administrative Tools > Computer Management > System Tools > Local Users and Groups > Groups > Hyper-V Administrators
- Minikube
- Available via
winget
π winget install --id Kubernetes.minikube
- Available via
- Kubectl
- Downloaded and put on Windows Path π
- Atomic Commits: Everything Useful I Know About kubectl
- Overview of kubectl
- kubectl Cheat Sheet
- Docker CLI
- Downloaded and put on Windows Path π
- Git and Git CLI
winget install --id Git.Git
winget install --id GitHub.cli
Optional
- Winget
- Windows Terminal
- Git-Bash in Windows Terminal (it’s easy, really!)
Starting Goals
- Transition to using Minikube and it’s built-in docker daemon without much disruption
- Let’s continue to be π ββοΈon additional VMs
- Let’s keep projects
KinD
andK3d
“on hold/watching” status - And the same with projects
buildah
andpodman
Doing It
- Run
minikube start --driver hyperv
- Consider tuning parameters for CPU and memory limits e.g.
minikube config set {cpus|memory} {quantity}
- Consider tuning parameters for CPU and memory limits e.g.
- Run
minikube docker-env --shell {bash|cmd|powershell}
- πββοΈ This command gives you the information needed for Docker CLI and this info is provided. To omit the
shell
flag however means that the shell will be guessed, so you may be given a subsequent command to run that will produce error. Moreover,shell powershell
will be incorrect forpwsh
, so maybe not run that Terminal session for now. - Bash:
eval $(minikube -p minikube docker-env)
- CMD:
@FOR /f "tokens=*" %i IN ('minikube -p minikube docker-env') DO @%i
- βοΈ π Protip: Use a better shell
- Powershell:
& minikube -p minikube docker-env | Invoke-Expression
- πββοΈ This command gives you the information needed for Docker CLI and this info is provided. To omit the
docker container ls
- π Docker Client and Server π