我试图在Azure容器实例中运行Azure Forms Recognizer Label工具。
我遵循了这里中的指示。
我能够部署容器映像,但是当我尝试启动它时,它会终止于以下消息:
缺少EULA=accept命令行选项。您必须提供此选项才能继续。
这非常令人惊讶,因为该选项已在我的YAML文件中指定(见下文)。
我能做些什么来解决这个问题?
我的YAML档案:
apiVersion: 2018-10-01
location: West Europe
name: renecognitiveservice
imageRegistryCredentials: # This is required when pulling a non-public image
- server: mcr.microsoft.com
username: xxx
password: xxx
properties:
containers:
- name: xxxeamlabelingtool
properties:
image: mcr.microsoft.com/azure-cognitive-services/custom-form/labeltool
environmentVariables: # These env vars are required
- name: eula
value: accept
- name: billing
value: https://rk-formsrecognizer.cognitiveservices.azure.com/
- name: apikey
value: xxx
resources:
requests:
cpu: 2 # Always refer to recommended minimal resources
memoryInGb: 4 # Always refer to recommended minimal resources
ports:
- port: 5000
osType: Linux
restartPolicy: OnFailure
ipAddress:
type: Public
ports:
- protocol: tcp
port: 5000
tags: null
type: Microsoft.ContainerInstance/containerGroups发布于 2020-02-12 17:17:49
显然,您可以使用命令运行它:
"command": [
"./run.sh", "eula=accept"
],在门户网站工作
发布于 2020-02-24 21:47:33
这就是您在创建容器实例时希望在Azure门户中添加的内容。您可以在“高级”选项卡中找到这个选项卡。之后,您可以访问该实例的IP地址来打开label工具。

"./run.sh", "eula=accept"https://stackoverflow.com/questions/60080450
复制相似问题