Use podman with Azure CLI

Handwritten on 02 May 2023

Switch to Podman from docker

When switching from Docker to Podman one of the first issues you will encounter is the that Azure CLI wants docker to be installed when you authenticate to an Azure Container Registry. How to fix this?

  1. Uninstall docker (uninstall script available in /Applications/Docker)
  2. Install podman: brew install podman (and if you want brew install --cask podman-desktop)
  3. podman machine init
  4. podman machine start

Now comes the "magic" part:

Alias docker by pointing to podman (export or add it to your .zshrc): alias docker=podman
Add a symlink to docker: ln -s /usr/local/bin/podman /usr/local/bin/docker || true

Now you can login with Azure CLI:

   && az acr login --name <your-az-cr>

© 2023 Handcrafted in Nijmegen, The Netherlands