我一直在尝试通过 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 没有成功,同样的错误信息