Questions tagged [azure-container-instances]

Azure Container Instances is a cloud service from Microsoft that offers to run containers as a service without managing the underlying infrastructure/servers. This tag is used for questions related to using azure container instances

Azure Container Instances offers the fastest and simplest way to run a container in Azure, without having to provision any virtual machines and without having to adopt a higher-level service.

Azure Container Instances is a great solution for any scenario that can operate in isolated containers, including simple applications, task automation, and build jobs. For scenarios where you need full container orchestration, including service discovery across multiple containers, automatic scaling, and coordinated application upgrades, we recommend the [tag:Azure Container Service].

Features

  • Fast startup times
  • Hypervisor-level security
  • Custom Sizes
  • Public IP connectivity
  • Persistent storage
  • Linux and Windows containers
  • Co-scheduled groups

For more information, see Documentation

658 questions
4
votes
3 answers

Interacting with a container in Azure Container Instances

Is there a way to execute a command in a container hosted in ACI? I'm looking for something like this: docker container exec [image] [command]
Dave Swersky
  • 34,502
  • 9
  • 78
  • 118
4
votes
2 answers

private ip for azure container instance

The API seems to support public or private for ip address, but I can't figure out how to get that private ip address on a vnet. "properties": { "containers": [ ], "osType": "Linux", "ipAddress": { "type": "Public", "ports": [ { …
ahmelsayed
  • 7,125
  • 3
  • 28
  • 40
3
votes
0 answers

dbt pipeline call from Azure Data Factory using Azure Container Instance with a variable command

I'm looking to call dbt in a child pipeline from Azure Data Factory. Looking at the following project on GitHub it's been done before. https://gitlab.com/hashmapinc/oss/dbtonazure What I would like to do though is pass a parametrised call from the…
3
votes
0 answers

Docker Chrome Memory Leak When Using --Disable-Dev-Shm-Usage

This is a follow-up to my previous question: I am creating a NodeJS-based image that I install latest Chrome and Chromedriver on, then run a NodeJS-based cron job that uses Selenium Webdriver for testing on a one-minute interval. This runs in an…
Simon
  • 1,630
  • 1
  • 17
  • 23
3
votes
1 answer

Why is Azure double-pulling my image & "losing track" of the resulting container?

I am experiencing a sporadic issue running containers on ACI that seems to cause Azure to "lose track" of my container instance and result in an orphaned container. My containers always run successfully, but every now and then I get this weird…
riptusk331
  • 369
  • 4
  • 9
3
votes
2 answers

Azure Container Instances cannot access to docker images

I just recently had a problem when trying to deploy the new docker images to Azure Container Instances. The Azure portal return this message when I was trying to restart the container groups: 'BadRequest':'InaccessibleImage':'The image 'xxxx' in…
Thanapat
  • 31
  • 2
3
votes
1 answer

I can't add docker contexts via VS Code because the button is missing. Why is this?

I am trying to create a Docker context with VS Code to enable me to deploy the container to Azure, following this microsoft tutorial. The image shown in the tutorial has a button with a plus to create a new context, but my version does not have this…
3
votes
1 answer

Terraform Azure Container Groups appear to have no way to mount multiple volumes?

When reviewing the documentation for Azure Container Groups, specifically this page on secrets: https://learn.microsoft.com/en-us/azure/container-instances/container-instances-volume-secret I noticed the volumes object is an array of what appear to…
3
votes
1 answer

Azure Container Instance - restarting once in a while for no apparent reason

I have a few different containerized web apps running on Azure Container Instance (ACI). I recently noticed that some of these containers just restart with no apparent reason once in a month or so. Since the restarts are on different apps/containers…
rahulmohan
  • 1,285
  • 11
  • 19
3
votes
1 answer

`docker-compose up` vs. `docker compose up` with environment variables

I'm trying to deploy a three-node Elasticsearch cluster to an Azure Container Instance using Docker Compose. I'm loosely following this example from the Elasticsearch documentation and this tutorial from the ACI documentation. When I try to deploy…
3
votes
4 answers

How can I use a SystemAssigned identity when pulling an image from Azure Container Registry into Azure Container Instances?

I want to create a container (or container group) in Azure Container Instances, pulling the image(s) from Azure Container Registry - but with using a SystemAssigned identity. With that I want to avoid using ACR login credentials, a service principal…
3
votes
1 answer

Storing Docker PostgreSQL data to an Azure Storage Account

tell me how can I store PostgreSQL database data in an Azure Storage account. The PostgreSQL deploy to Azure Container Instance. When I restart the Azure Container instance all data disappears. Dockerfile FROM timescale/timescaledb:latest-pg12 ENV…
3
votes
1 answer

Dynamically pass environment variables to Azure Container Instance

I have a simple bash script which creates a container and runs a task in it: api=${1} az container create \ --resource-group "my_resource_group" \ --file container.yaml \ --environment-variables "APIKEY"="${api}" But the variable APIKEY never gets…
3
votes
1 answer

CPU usage graphs on Azure Container Instance

When running a simple Linux container on ACI there is a huge discrepancy between the 'graphed' CPU usage in the portal compared to running 'top' in the container itself. I can see my process running in 'top' and the cpu usage stays at around 5% and…
SteveHayles
  • 168
  • 1
  • 7
3
votes
1 answer

How can I pass container level arguments in azure container create

When I run docker locally "docker run -it -p 8080:8080 codercom/code-server --auth none" I am using --auth none argument, but how can i use this in azure container create commands. If I run normally like "az container create --resource-group…