Azure CLI container

Build Status

This repository contains a Dockerfile for building an Azure CLI container image.

It is designed to be used as a operating environment for running Azure CLI commands, while providing isolation from the host system. User's home directory is mounted into the container to persist configuration and credentials. Volume is used to persist home directory data.

Usage

azure-cli [--account ACCOUNT_NAME] [--user CONTAINER_USERNAME] [ container CLI arguments... ]
  • --account ACCOUNT_NAME - Specify the account name to use for the volume that stores the home directory data. Defaults to the current user's username.
  • --user CONTAINER_USERNAME - Specify the username to use inside the container. Defaults ubuntu.
  • container CLI arguments... - Any additional arguments are passed to the container CLI command (not the command inside the container).

Note: Copy the azure-cli script to a directory in your PATH (e.g. /usr/local/bin) to use it as a regular command.

Description
Container with Azure CLI and other useful tools installed.
Readme 54 KiB
Languages
Shell 71.8%
Dockerfile 28.2%