azure-container-instances

Running commands in azure container instance after container running

别说谁变了你拦得住时间么 提交于 2020-04-30 06:25:25
问题 I am having code-server container running and I am running az container exec --resource-group resourcename --name code-server --exec-command "ls" it is giving list of files and folder but if we run az container exec --resource-group resourcename --name code-server --exec-command "cd folder" not working showing error like rpc error: code = 2 desc = oci runtime error: exec failed: container_linux.go:247: starting container process caused "exec: \"cd Angular\": executable file not found in $PATH

How can I pass container level arguments in azure container create

╄→尐↘猪︶ㄣ 提交于 2020-04-18 05:46:17
问题 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 learn-deploy-vsCode --name code-server --image codercom/code-server --auth none --ports 8080 --dns-name-label san-codeserver --location eastus" it is throwing error "az: error: unrecognized arguments: --auth none" . 回答1: When you run the command docker

Remote VS Code development with code-server

可紊 提交于 2020-04-17 22:20:07
问题 I have deployed the image https://hub.docker.com/r/codercom/code-server which is remote VS code in Azure containers. But now if I want to open any Project(Eg: Angular Project with node and angular cli setup)in that VS Code and develop remotely how can I achieve this. 回答1: For your requirements, I think there are two ways to achieve it. One is that copy your project to the image and then deploy the image to the ACI. Or copy the project after deploying the image to ACI. Another is that mount

How to add Fonts to Windows Docker container/image?

荒凉一梦 提交于 2020-02-06 02:41:31
问题 I have a console application that is built on .NET Framework v4.8. I am trying to run it in Azure Container Instances(ACI) using the docker image. I have created a docker image locally and pushed it to ACI and it is running successfully. Now I am facing one issue. This application sends an email with RDLC reports. But the reports I am getting in the mail have different fonts than the report I am getting previously(without docker). I found that the base docker image mcr.microsoft.com/dotnet

Using Azure Container Registry creating new Azure Container Instance from C#

拟墨画扇 提交于 2020-01-03 17:22:58
问题 I have created a Azure Container Registry, and uploaded a custom ACI to the registry - no problem - everything works as intended. I have tried creating an container instance from the image using the Azure Portal, and no problems there either - however - when I want to automate things using C# with the Microsoft Azure Management Container Instance Fluent API, I run into problems, and even though I feel like I have been all over the Internet and the settings, looking for hidden obstructions, I

Azure Container Group IP Address disappeared

◇◆丶佛笑我妖孽 提交于 2019-12-23 02:29:28
问题 We have an Azure Container Group that had an IP Address assigned upon creation. The IP address is now missing and our application suddenly stopped working. (i.e. It was set to null, previously the resource had an associated IP address) Note that our subscription was suspended for 2 weeks and is now back to an active state. If someone can please help us to understand the following: Q1: Where did the IP go? Q2: If the subscription went suspended (as our case), do they deallocate the IP address?

How to expose multiple ports on Azure Container Instance?

时光毁灭记忆、已成空白 提交于 2019-12-21 04:07:25
问题 Is it possible to expose/open more than one port on an Azure Container Instance? I've only been able to open one port per container. I'd like to run the equivalent of: docker run -p 80:80 -p 443:443 ... I've unsuccessfully tried: Maps only the last port: az container create ... --port 80 --port 443 Syntax error: az container create ... --port 80 443 But the resource JSON seems to indicate that an array is possible: az container show -name <container-name> --resource-group <resource-group-name

Azure Container Instances with blobfuse or Azure Storage Blobs

只愿长相守 提交于 2019-12-11 07:53:24
问题 I'm deploying to azure container instances from the azure container registry (azure cli and/or portal). Azure blobfuse (on ubuntu 18) is giving me the following error: device not found, try 'modprobe fuse' first. The solution to this would be to use the --cap-add=SYS_ADMIN --device /dev/fuse flags when starting the container (docker run): can't open fuse device in a docker container when mounting a davfs2 volume However, the --cap-add flag is not supported by ACI: https://social.msdn

Setting up Persistent Data for Carto/Postgresql on ACI

a 夏天 提交于 2019-12-08 10:45:15
问题 My main objective is to get an image up and running quickly and easily while persisting data. I THINK an ACI is the best way to do this. Assuming this is true... [Edit2] It appears that there may be a more fundamental problem is the inability to specify a hostname like you can in docker. I will ask that question in a separate thread. I was able to attach storage. [Original post] I would like to use an ACI to setup this an image that is on Docker Hub. I have been able to follow the simple

Is there a way to specify hostname when starting container on azure cloud instance

坚强是说给别人听的谎言 提交于 2019-12-06 16:09:11
问题 I have been trying to setup a docker image on Azure and am running into an issue. The image has been designed to require a -h hostname argument when starting it using the docker commands. The image is here: https://hub.docker.com/r/sverhoeven/cartodb/ I can't translate these commands into something I can do on Azure. The options for -h are as follows: How to use a different hostname: For example to use cartodb.example.com as a hostname start with: docker run -d -p 80:80 -h cartodb.example.com