【问题标题】:Azure Form Recognizer Label Tool Docker: Missing EULA=accept command line option. You must provide this to continueAzure 表单识别器标签工具 Docker:缺少 EULA=accept 命令行选项。您必须提供此信息才能继续
【发布时间】: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 语法,所以我不知道如何解决您的问题,但希望这些信息对您有所帮助。
  • 我也有同样的问题。试图让它通过门户网站工作,但没有运气!有什么想法吗?

标签: azure-cognitive-services


【解决方案1】:

显然你可以用命令运行它:

"command": [
"./run.sh", "eula=accept"
],

通过门户工作

https://github.com/MicrosoftDocs/azure-docs/issues/46623

【讨论】:

  • 可以从门户确认这是否有效。只需在创建容器实例时在命令字段(选项卡:高级)中添加“./run.sh”、“eula=accept”。
【解决方案2】:

这是您在创建容器实例时要在 Azure 门户中添加的内容。 您将在“高级”选项卡中找到它。 之后,您可以访问该实例的 IP 地址以打开标签工具。

"./run.sh", "eula=accept"

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2017-07-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多