Public | Automated Build

Last pushed: 2 years ago
Short Description
Azure CLI inside Alpine Docker
Full Description


An azure-cli image based on Alpine Docker.

The container contains the following:

  • Node (6.x)
  • Azure CLI ()



Pull the docker image from Docker hub as:

$ docker pull activatedgeek/azure-cli

By default, this will pull the latest image.

The run command looks like:

$ docker run --rm activatedgeek/azure-cli:latest --version

To persist the state changes like login, you must use the volume mount
to /root/.azure folder and make it writeable.

A sample command looks like:

$ docker run --rm -v $(pwd)/.azure:/root/.azure:rw activatedgeek/azure-cli:devel login

Next, try listing accounts as:

$ docker run --rm -v $(pwd)/.azure:/root/.azure:rw activatedgeek/azure-cli:devel account list

which should produce output something like:

info:    Executing command account list
data:    Name           Id                                    Current  State  
data:    -------------  ------------------------------------  -------  -------
data:    BizSpark       xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx  true    Enabled
info:    account list command OK


To build the latest image from source, run

$ make devel
Docker Pull Command
Source Repository