简体   繁体   English

Azure 容器实例说它运行正常但 URL 没有在浏览器中显示我的应用程序

[英]Azure Container Instance Says its running Okay but the URL doesnt show my app in the browser

I'm trying to have a translator service ( https://github.com/LibreTranslate/LibreTranslate ) running within either azure container apps(ACA) or azure container instance(ACI).我正在尝试在 azure 容器应用程序 (ACA) 或 azure 容器实例 (ACI) 中运行翻译服务 ( https://github.com/LibreTranslate/LibreTranslate )。 i tried within ACA but the image is too large as ACA only allows images up to 4Gb and the image is about 7Gb.我在 ACA 中尝试过,但图像太大,因为 ACA 只允许最大 4Gb 的图像,而图像大约为 7Gb。 so that didnt work out.所以那没有成功。 so i tried in ACI and there it shows its running, no errors or anything that i can find but when i go to the URL provided after the container is running it gives me nothing except a stream timeout after a while.所以我在 ACI 中尝试,它显示它正在运行,没有错误或我能找到的任何东西,但是当我在容器运行后提供的 go 到 URL 时,除了一段时间后的 stream 超时外,它什么也没给我。 does anyone know what i am doing wrong?有谁知道我做错了什么?

i tried following the how to provided by azure and microsoft but this didnt help so far我尝试按照 azure 和微软提供的方法进行操作,但到目前为止没有帮助

I have tried to repro the same in my lab environment and got the below results.我试图在我的实验室环境中重现相同的结果并得到以下结果。

Step 1: Clone the repo.第 1 步:克隆存储库。

Step 2: To test creating and running an image in the local machine, run the shell script run.sh.第 2 步:要测试在本地机器上创建和运行图像,请运行 shell 脚本 run.sh。 Kindly refer to the READ.md file in the source code repo for more information.请参阅源代码库中的 READ.md 文件以获取更多信息。在此处输入图像描述 Once the script ran successfully, Kindly check for images and containers provisioned.脚本成功运行后,请检查已配置的图像和容器。在此处输入图像描述

Step 3: Create a tag for image libretranslate/libretranslate and push it to ACR第 3 步:为图像 libretranslate/libretranslate 创建标签并将其推送到 ACR在此处输入图像描述

Step 4: Create an ACI instance with the below configuration.第 4 步:使用以下配置创建 ACI 实例。 CPU cores: 2 Memory: 2 GiB Port: 5000, TCP CPU 内核:2 Memory:2 GiB 端口:5000,TCP 在此处输入图像描述在此处输入图像描述 Once Container Instance is provisioned, wait for at least 2-5 mins and then verify:5000供应容器实例后,等待至少 2-5 分钟,然后验证:5000 在此处输入图像描述在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在 Azure 容器实例上运行 Superset - Running Superset on Azure container Instance Dockerized NGINX 配置 ReactJS App 在 Azure 上运行(容器实例) - Dockerized NGINX Configuration with ReactJS App Running on Azure (Container Instances) 我的 Docker 容器在 AWS EC2 Ubuntu 实例上运行。 当我 go 到公共 IPv4 DNS 时,我的浏览器显示“拒绝连接”。 - My Docker container is running on an an AWS EC2 Ubuntu instance. When I go to the Public IPv4 DNS, my browser shows "refused to connect." 优雅地停止 azure 容器实例 - gracefully stop azure container instance Sonarqube 在 Azure 容器实例上升级 - Sonarqube upgrade on Azure Container Instance Azure 容器实例 Http 到 Https - Azure Container Instance Http to Https 向 Azure 容器实例入口点提供参数 - Provide args to Azure Container Instance entrypoint RuntimeError:Java 网关进程在部署 Pyspark model 到 Azure 容器实例时发送其端口号之前退出 - RuntimeError: Java gateway process exited before sending its port number when Deploying Pyspark model to Azure Container Instance 可以将我的临时文件放入我的应用程序的 tmp/ 目录中吗? - Is it okay to put my temporary files into a tmp/ directory in my app? 如何在 azure 容器实例中运行 Azuredevops buildagent - How to run Azuredevops buildagent in azure container instance
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM