AzureMLCompute 作业因“FailedLoginToImageRegistry”而失败

AzureMLCompute job failed with `FailedLoginToImageRegistry`

我一直在尝试通过 azure ml python sdk 发送火车作业:

from azureml.core import Workspace, Experiment, ScriptRunConfig 

if __name__ == "__main__":
    ws = Workspace.from_config()
    experiment = Experiment(workspace=ws, name='ConstructionTopicsModel')

    config = ScriptRunConfig(source_directory='./',
                         script='src/azureml/train.py',
                         arguments=None,
                         compute_target='ComputeTargetName',
                         )

    env = ws.environments['test-env']
    config.run_config.environment = env
    run = experiment.submit(config)
    
    run.wait_for_completion(show_output=True)

    aml_url = run.get_portal_url()
    print(aml_url)

但我收到 ServiceError 消息:

AzureMLCompute job failed. FailedLoginToImageRegistry: Unable to login to docker image repo
Reason: Failed to login to the docker registry
error: WARNING! Using --password via the CLI is insecure. Use --password-stdin. Error saving credentials: error storing credentials - err: exit status 1, out: `Cannot autolaunch D-Bus without X11 $DISPLAY`

serviceURL: 7ac86b04d6564d36aa80ae2ad090582c.azurecr.io
Reason: WARNING! Using --password via the CLI is insecure. Use --password-stdin. Error saving credentials: error storing credentials - err: exit status 1, out: `Cannot autolaunch D-Bus without X11 $DISPLAY`

Info: Failed to setup runtime for job execution: Job environment preparation failed on 10.0.0.5 with err exit status 1.

我也试过使用 azure cli 没有成功,同样的错误信息

到目前为止我找到的唯一方法是 运行 它在 compute-target 本身的终端上。 docker 错误就是这样消失的。尝试从不同计算实例的终端 运行 实验引发异常。