-
Notifications
You must be signed in to change notification settings - Fork 119
Description
I am trying to import a private image from docker hub
In the first scenario, I ran the import command with below syntax, and it asked for password prompt and upon giving the password, it successfully pulled the image
enroot import docker://username@image:tag
In the second scenario, I created a file(.credentials) under ENROOT_CONFIG_PATH and added the credentials which I used above in the below format
machine index.docker.io login username password password
After saving the .credentials file, I used the below command to import the image
enroot import docker://index.docker.io#image:tag
this command shows that it is using the user from the .credentials file and the authentication is getting successful but throwing 401 unauthorized error for that image(the password in the credentials file is same as the one which I used for pulling the image in the first scenario)
I think it is picking only the username from .credentials file and not the password. Why I am saying this is because I replaced the original password with wrong password and it still says the authentication succeeded