Create Container Group using images from a private registry using C#
Azure Container Instance sample for managing container groups with private image repositories. - Create an Azure Container Registry to be used for holding the Docker images - If a local Docker engine cannot be found, create a Linux virtual machine that will host a Docker engine to be used for this sample - Use Docker DotNet to create a Docker client that will push an image to Azure Container Registry - Create a new container group with one container instance from the image that was pushed in the registry
Running this Sample
To run this sample:
Set the environment variable
AZURE_AUTH_LOCATION with the full path for an auth file. See how to create an auth file.
git clone https://github.com/Azure-Samples/aci-dotnet-create-container-groups-using-private-registry.git cd aci-dotnet-create-container-groups-using-private-registry dotnet build bin\Debug\net452\ManageWithAzureContainerRegistry.exe