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
  • Kubectl
  • 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 and K3d “on hold/watching” status
  • And the same with projects buildah and podman

Doing It

  • Run minikube start --driver hyperv
    • Consider tuning parameters for CPU and memory limits e.g. minikube config set {cpus|memory} {quantity}
  • 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 for pwsh, 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
  • docker container ls
    • πŸ”— Docker Client and Server πŸŽ‰
Sean Flaherty
Sean Flaherty

Data Team and Cloud Services Lead | he/him | (βŒβŠ™_βŠ™)