az-container
Manage Azure Container Instances. tldr-pages
On several platforms
Several platforms
Manage Azure Container Instances. Part of azure-cli (also known as az).
Create a container in a container group
az container create --resource-group resource_group --name name --image image_name --os-type windows --cpu number_of_cpu_cores --memory memory_in_GBIdentify--resource-groupName of resource group. Azure CLI reference--nameThe name of the container group. Azure CLI reference--imageThe container image name Azure CLI reference--os-typeThe OS type of the containers Azure CLI reference--cpuThe required number of CPU cores of the containers, accurate to one decimal place Azure CLI reference--memoryThe required memory of the containers in GB, accurate to one decimal place Azure CLI referenceExecute a command from within a running container of a container group
az container exec --resource-group resource_group --name container_group_name --exec-command "command"Identify--resource-groupName of resource group. Azure CLI reference--nameThe name of the container group. Azure CLI reference--exec-commandThe command to run from within the container Azure CLI referenceExamine the logs of a container in a container group
az container logs --name name --resource-group resource_groupIdentify--nameThe name of the container group. Azure CLI reference--resource-groupName of resource group. Azure CLI referenceGet the details of a container group
az container show --name name --resource-group resource_groupIdentify--nameThe name of the container group. Azure CLI reference--resource-groupName of resource group. Azure CLI referenceStart all containers in a container group
az container start --name name --resource-group resource_groupIdentify--nameThe name of the container group. Azure CLI reference--resource-groupName of resource group. Azure CLI referenceStop all containers in a container group
az container stop --name name --resource-group resource_groupIdentify--nameThe name of the container group. Azure CLI reference--resource-groupName of resource group. Azure CLI referenceDelete a container group
az container delete --name name --resource-group resource_groupIdentify--nameThe name of the container group. Azure CLI reference--resource-groupName of resource group. Azure CLI reference