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. Volume is used to persist home directory data.

Usage

azure-cli (-l|--list)

List all containers created by this script.

azure-cli [(-a|--account) <account_name>]
    [--user <user_name>]
    [--name <container_name>]
    [--volume <local_path>:<container_path>]
    [--]
    [ other arguments passed as a command to execute inside the container ]
  • --account <account_name>: Specifies the account name to be set as an environment variable inside the container. The volume name will be derived from this account name.
  • --user <user_name>: Specifies the user name to be used inside the container. Default is 'ubuntu'.
  • --name <container_name>: Specifies the name of the container. Default is sanitized account name.
  • --volume <local_path>:<container_path>: Binds additional local path to a path inside the container.
  • --: Indicates the end of options for the script. Any arguments following this will be passed as a command to execute inside the container.
Description
Container with Azure CLI and other useful tools installed.
Readme 49 KiB
Languages
Shell 70.8%
Dockerfile 29.2%