azure-container-instances

Azure Container Group Instance

牧云@^-^@ 提交于 2021-02-19 05:22:51
问题 I am working with Azure Container Instance group.. and one of my containers is constantly restarting.. it goes to a terminated state and restarts. Everything looks good in logs.. The container is running a spring framework + React application. When I run the containers locally.. it works perfectly. Am not sure what is happening behind the scenes? 回答1: You could use Azure CLI to set a restart policy of OnFailure or Never . az container create \ --resource-group myResourceGroup \ --name

Can I assign a reserved IP to Azure Container Instances (ACI)?

浪尽此生 提交于 2021-02-18 05:35:52
问题 ok, I have a requirement from third-part to run a workload from a specific IP (so they can white-list it). Can I assign a reserved IP to my ACI container? 回答1: UPDATE You can now assign a private IP address by joining your container group to a VNET! Check out details at https://aka.ms/aci/vnet. You cannot assign a private IP address to a container group today. We are enabling assignment of private IP addresses to container groups later this year so you can join a container group to a new or

Deploying Postgres database on azure Container Instance?

99封情书 提交于 2021-02-11 12:57:59
问题 I am trying to deploy PostgresDatabase on azure container instance. To deploy on docker using bind mount(since Azure container Instance only support bind mount) i am using the below command, and it is deployed on docker. docker run -d -p 5434:5432 --name some-postgres -e POSTGRES_PASSWORD=mysecretpassword -e PGDATA=/var/lib/postgresql/data/pgdata -v /home/ubuntu/volum:/var/lib/postgresql/data postgres If i do something similar for deploying on Azure container Instance az container create \ -

Deploying Postgres database on azure Container Instance?

江枫思渺然 提交于 2021-02-11 12:57:47
问题 I am trying to deploy PostgresDatabase on azure container instance. To deploy on docker using bind mount(since Azure container Instance only support bind mount) i am using the below command, and it is deployed on docker. docker run -d -p 5434:5432 --name some-postgres -e POSTGRES_PASSWORD=mysecretpassword -e PGDATA=/var/lib/postgresql/data/pgdata -v /home/ubuntu/volum:/var/lib/postgresql/data postgres If i do something similar for deploying on Azure container Instance az container create \ -

Azure Container Instances - from where to execute “docker login” before we execute “az container create” command

|▌冷眼眸甩不掉的悲伤 提交于 2021-02-11 12:40:25
问题 we need to deploy ACI - Azure Container Instance in private virtual network. We followed the example and prepared YAML file from this link. https://docs.microsoft.com/en-us/azure/container-instances/container-instances-vnet So now we need to execute before that our command: az container create --resource-group myResourceGroup --file vnet-deploy-aci.yaml in that yaml we are referencing our image, similarly like from the above example (just we are using our private repo ) image: mcr.microsoft

Azure Container Instances - from where to execute “docker login” before we execute “az container create” command

一曲冷凌霜 提交于 2021-02-11 12:39:39
问题 we need to deploy ACI - Azure Container Instance in private virtual network. We followed the example and prepared YAML file from this link. https://docs.microsoft.com/en-us/azure/container-instances/container-instances-vnet So now we need to execute before that our command: az container create --resource-group myResourceGroup --file vnet-deploy-aci.yaml in that yaml we are referencing our image, similarly like from the above example (just we are using our private repo ) image: mcr.microsoft

Azure Container Instances - .net sdk - change environment variable and restart task container

99封情书 提交于 2021-02-10 16:07:23
问题 I have deployed a container group with just one container in it, with the restart policy as Never. I want to run this container again, but with different environment variables. I see ways to do this in powershell and azure cmdlets, but the Azure .net SDK is not very clear on how this can be achieved. Does anyone have any pointers on how this can be achieved with the Fluent API? This will be useful for me, since the image need not be pulled again, just the container instance restarted. 回答1: I

Azure Containers deployment - “Operation failed with status 200: Resource State Failed”

亡梦爱人 提交于 2021-02-04 16:46:34
问题 From Azure we try to create container using the Azure Container Instances with prepared YAML. From the machine where we execute az container create command we can login successfully to our private registry (e.g fa-docker-snapshot-local.docker.comp.dev on JFrog Artifactory ) after entering password and we can docker pull it as well docker login fa-docker-snapshot-local.docker.comp.dev -u svc-faselect Login succeeded So we can pull it successfully and the image path is the same like when doing

Azure Containers deployment - “Operation failed with status 200: Resource State Failed”

只愿长相守 提交于 2021-02-04 16:46:03
问题 From Azure we try to create container using the Azure Container Instances with prepared YAML. From the machine where we execute az container create command we can login successfully to our private registry (e.g fa-docker-snapshot-local.docker.comp.dev on JFrog Artifactory ) after entering password and we can docker pull it as well docker login fa-docker-snapshot-local.docker.comp.dev -u svc-faselect Login succeeded So we can pull it successfully and the image path is the same like when doing

Attaching a static ip address to Azure Container Instance

懵懂的女人 提交于 2021-01-29 03:01:46
问题 Is there any way we can attach an fixed ip address to Azure Container Instance(ACI). In AWS we can attach an elastic ip to ec2 instances, but in Azure we have not used any VM , we took Azure Container Instance as a service. The ip address of Azure container instance will change if we stop and start the Azure Container Instance, but how to create a fixed ip address in Azure ( like Elastic Ip in AWS) and attach to Azure Container Instance. Thanks in Advance :) 回答1: For your requirements,