a155a48aaac451847780d3b884412090763e666f
Azure CLI container
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
Languages
Shell
71.8%
Dockerfile
28.2%