Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Job submission problem - private docker registry job image #1215

Closed
JianfeiHu opened this issue Aug 30, 2018 · 13 comments
Closed

Job submission problem - private docker registry job image #1215

JianfeiHu opened this issue Aug 30, 2018 · 13 comments

Comments

@JianfeiHu
Copy link

When cluster is built, the registry on the configured azure is submitted to job. Does image URL fill in the server name?

@fanyangCS
Copy link
Contributor

here is an example: "image": "xxx.azurecr.io/demo4pai:tag", please replace xxx with your private docker registry and fill in the ":tag" if you have.

@JianfeiHu
Copy link
Author

JianfeiHu commented Aug 30, 2018

It always implies authentication.
Error response from daemon: Get https://XXXX.azurecr.io/v2/aiplatform/pai.run.cntk.test/manifests/latest: unauthorized: authentication required

@yjg66
Copy link
Contributor

yjg66 commented Aug 30, 2018

please check these docker account configuration at the cluster is configured correct or not.
https://github.com/Microsoft/pai/blob/f69396fa20590b66df33f755a6d19f338796d21e/cluster-configuration/services-configuration.yaml#L35

@JianfeiHu
Copy link
Author

There is no problem with username and password in the configuration file.

@yjg66
Copy link
Contributor

yjg66 commented Aug 30, 2018

Please debug at the occur error's server without PAI.
SSH to that server.
At that server pull and run your image locally to check it is registry problem or pai's problem.

@JianfeiHu
Copy link
Author

It can be pull on other machines.

@yjg66
Copy link
Contributor

yjg66 commented Aug 30, 2018

need your hands on login?

@JianfeiHu
Copy link
Author

@ydye

@yjg66
Copy link
Contributor

yjg66 commented Aug 30, 2018

Hi @ydye, jianfei's private azure acr repo image. If he config at service config of pai account and password, seems also meet error.
When he locally use that docker after hands on login could pull and run it.

@yjg66 yjg66 changed the title Job submission problem Job submission problem - private docker registry job image Aug 30, 2018
@fanyangCS
Copy link
Contributor

Please do not expose docker registry name as it is sensitive.

@fanyangCS
Copy link
Contributor

can you provide more details (e.g., log). I do not understand the problem. In which step are you blocked?

@yjg66
Copy link
Contributor

yjg66 commented Aug 30, 2018

error is ++[07:06:48] echo 'Can not pull Docker image'

Please refer: job_tutorial.md to have a try config the auth file:
Reference: https://github.com/Microsoft/pai/blob/master/docs/job_tutorial.md
'''
If you're using a private Docker registry which needs authentication for image pull and is different from the registry used during deployment, please create an authentication file in the following format, upload it to HDFS and specify the path in authFile parameter in config file.

docker_registry_server
username
password
NOTE: If you're using a private registry at Docker Hub, you should use docker.io for docker_registry_server field in the authentication file.
'''

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants