Skip to content

Authentication issue when storing credentials under ENROOT_CONFIG_PATH #241

@venkatesh2521

Description

@venkatesh2521

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions