Running the Azure CLI in a standard Docker container as an alias turns out to be surprisingly painful: you need to mount config and SSH directories, and files end up owned by root. The author explores this approach, hits multiple friction points, then discovers Distrobox as a cleaner solution. Distrobox shares the host home directory automatically, so no volume mounts are needed. The workflow is: create a Distrobox container (Debian 13), install the Azure CLI inside it, then export the binary to the host with `distrobox-export`. The result is a clean host system with the Azure CLI fully accessible as if installed natively.
Table of contents
Metadata and NavigationSort: