【发布时间】:2020-02-25 05:47:33
【问题描述】:
我正在尝试在 Azure 容器实例中运行 Azure Forms Recognizer Label Tool。
我已按照here 中的说明进行操作。
我能够部署容器映像,但是当我尝试启动它时,它会终止并显示以下消息:
缺少 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
【问题讨论】:
-
这很令人困惑,因为 EULA=accept 应该在命令行中,而不是作为环境变量。我不熟悉 yaml 语法,所以我不知道如何解决您的问题,但希望这些信息对您有所帮助。
-
我也有同样的问题。试图让它通过门户网站工作,但没有运气!有什么想法吗?