-
Notifications
You must be signed in to change notification settings - Fork 18.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Couldn't login to docker hub. Error - login attempt to https://hub.docker.com/v2/ failed with status: 404 Not Found #34872
Comments
Docker Hub is the default registry, so there's no need to specify the registry (i.e., just However, the reason you're getting this error, is because Closing because this is not a bug, but feel free to continue the conversation |
hi @thaJeztah
Could you please check at your end if this is the case? |
That last message looks correct if the username or password is incorrect |
@thaJeztah I've verified the username and password and it is correct but still I see the error in Fedora 25 or 26 but login is successful in Ubuntu 16.04. Can you please check in any fedora 25/26 machine whether it works fine as expected? |
@thaJeztah did you get the chance to verify the steps on Fedora 25/26? |
Looks to work for me; $ docker login
Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com to create one.
Username: thajeztah
Password:
Login Succeeded
$ docker pull thajeztah/private-test-image
Using default tag: latest
latest: Pulling from thajeztah/private-test-image
6c123565ed5e: Pull complete
8380043c1909: Pull complete
bc193245541a: Pull complete
f6058f41c33e: Pull complete
Digest: sha256:26d2327aea9a087305fae56939a8a4072304c7f6b401c111221f16278c3a0efd
Status: Downloaded newer image for thajeztah/private-test-image:latest
Things to try:
|
surprisingly my laptop doesn't have |
Iam also facing the same issue The command docker login jfrog.xxxxx.xxxxxx returns this error "It concatenates v2 to the URL I am trying to access". The URL is valid and repository used to store the dockers is jfrog. THe log file of docker at /var/log/upstart/docker.log reads |
@thaJeztah - I think we shouldn't close this issue since others facing the same issue. Could you please check why different systems login into different URLs? |
If a 404 is returned by the registry, that means the registry is not conforming to the registry V2 specification; https://github.com/docker/distribution/blob/master/docs/spec/api.md#api-version-check
It's possible the registry only implements If that doesn't work, I suggest opening a ticket with JFrog / Artifactory |
The key is to use your id with the usename to login , don't use the registry email address. |
Please if this is your issue how do you solve it, please help |
Description
couldn't able to login to docker hub.
I have tested this against Fedora 25/26.
The below command is working fine in Ubuntu 16.04
$ docker login --username abc --password xxx https://hub.docker.com
WARNING! Using --password via the CLI is insecure. Use --password-stdin.
Error response from daemon: login attempt to https://hub.docker.com/v2/ failed with status: 404 Not Found
I have follwed the steps in the URL https://docs.docker.com/engine/installation/linux/docker-ce/fedora/#install-using-the-repository to install docker.
I start docker using the below command
$ sudo systemctl start docker
$ docker --version
Docker version 17.09.0-ce-rc1, build ae21824
$ docker-machine --version
docker-machine version 0.12.2, build 9371605
Steps to reproduce the issue:
1.create account in docker-hub https://hub.docker.com/.
2.login into docker hub account using terminal in ubuntu 16.04. This will work as expected.
$ docker login --username abc --password xxx https://hub.docker.com
3.login into docker hub account using terminal in Fedora 25/26.It fails.
Describe the results you received:
$ docker login --username abc --password xxx https://hub.docker.com
WARNING! Using --password via the CLI is insecure. Use --password-stdin.
Error response from daemon: login attempt to https://hub.docker.com/v2/ failed with status: 404 Not Found
Describe the results you expected:
login is expected to be succeded
Additional information you deem important (e.g. issue happens only occasionally):
Output of
docker version
:Output of
docker info
:Additional environment details (AWS, VirtualBox, physical, etc.):
physical - Fedora 25/26
The text was updated successfully, but these errors were encountered: