Files
azure-cli/README.md

33 lines
1.4 KiB
Markdown

# Azure CLI container
[![Build Status](https://gitea.koszewscy.waw.pl/slawek/azure-cli/actions/workflows/build.yml/badge.svg)](https://gitea.koszewscy.waw.pl/slawek/azure-cli/actions?workflow=build.yml)
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
```text
azure-cli (-l|--list)
```
List all containers created by this script.
```text
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.