# 404 Error while pulling image from docker hub

**URL:** <https://forums.docker.com/t/404-error-while-pulling-image-from-docker-hub/111510>\
**Category:** Docker Hub\
**Created:** [June 22, 2021, 8:26am UTC](https://forums.docker.com/t/404-error-while-pulling-image-from-docker-hub/111510 "2021-06-22T08:26:11Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![jgalda](https://avatars.discourse-cdn.com/v4/letter/j/e9c0ed/32.png) [@jgalda](https://forums.docker.com/u/jgalda)\
**Post date:** [June 22, 2021, 8:26am UTC](https://forums.docker.com/t/404-error-while-pulling-image-from-docker-hub/111510/1 "2021-06-22T08:26:11Z")

</div>

Hi,  
I’m getting 404 error when pulling docker from docker hub.  
I’m using image id with registry because in CI system I have private registry configured as default one.  
Yesterday, next command worked:

```auto

docker pull registry.hub.docker.com/library/python:3.8

```

today, I’m getting next error

```auto

Error response from daemon: error parsing HTTP 404 response body: invalid character '<' looking for beginning of value: "<!doctype html>\n<html lang=\"en\">\n\n<head>\n <meta charset=\"utf-8\">\n <title>404 : Docker</title>\n
...

```

Has anything changed in docker hub settings recently?  
I have similar issue while pulling other images from [hub.docker.com](http://hub.docker.com).

---

<div class="post-metadata">

**Author:** ![woan7905](https://avatars.discourse-cdn.com/v4/letter/w/ecd19e/32.png) [@woan7905](https://forums.docker.com/u/woan7905)\
**Post date:** [June 22, 2021, 9:42am UTC](https://forums.docker.com/t/404-error-while-pulling-image-from-docker-hub/111510/2 "2021-06-22T09:42:32Z")

</div>

Hello,

we get the same error since today.

```auto
docker pull registry.hub.docker.com/amazon/aws-efs-csi-driver:778131e
Error response from daemon: error parsing HTTP 404 response body: invalid character '<' looking for beginning of value: "<!doctype html>\n<html lang=\"en\">\n\n<head>\n <meta charset=\"utf-8\">\n <title>404 : Docker</title>\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n    
...

```

---

<div class="post-metadata">

**Author:** ![terpz](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/terpz/32/36125_2.png) [@terpz](https://forums.docker.com/u/terpz)\
**Post date:** [June 22, 2021, 9:52am UTC](https://forums.docker.com/t/404-error-while-pulling-image-from-docker-hub/111510/3 "2021-06-22T09:52:56Z")

</div>

is there a reason why you define the full fqdn to hub.docker?  
What happends if you use: docker pull amazon/aws-efs-csi-driver ?

---

<div class="post-metadata">

**Author:** ![jgalda](https://avatars.discourse-cdn.com/v4/letter/j/e9c0ed/32.png) [@jgalda](https://forums.docker.com/u/jgalda)\
**Post date:** [June 22, 2021, 10:18am UTC](https://forums.docker.com/t/404-error-while-pulling-image-from-docker-hub/111510/4 "2021-06-22T10:18:27Z")

</div>

In my case I’m defining fqdn, because Jenkins in configured in that way, if no registry is provided, the private one is used.  
So docker pull without registry works on my local machine, but not on the Jenkins’ node, because it tries to pull from private-repo/organization/docker-image.

---

<div class="post-metadata">

**Author:** ![woan7905](https://avatars.discourse-cdn.com/v4/letter/w/ecd19e/32.png) [@woan7905](https://forums.docker.com/u/woan7905)\
**Post date:** [June 22, 2021, 10:26am UTC](https://forums.docker.com/t/404-error-while-pulling-image-from-docker-hub/111510/5 "2021-06-22T10:26:22Z")

</div>

```auto
docker pull amazon/aws-efs-csi-driver:778131e

```

works local. But the fqdn is defined in the OpenShift operator. So I can’t change this.  
Pulling with _docker pull [registry.hub.docker.com/amazon/aws-efs-csi-driver:778131e](http://registry.hub.docker.com/amazon/aws-efs-csi-driver:778131e)_ worked the last months.

---

<div class="post-metadata">

**Author:** ![artinomi](https://avatars.discourse-cdn.com/v4/letter/a/7feea3/32.png) [@artinomi](https://forums.docker.com/u/artinomi)\
**Post date:** [June 22, 2021, 1:43pm UTC](https://forums.docker.com/t/404-error-while-pulling-image-from-docker-hub/111510/6 "2021-06-22T13:43:55Z")

</div>

Hello we have encoutred the same problem.

Quick fix for it is to change the registry url:  
`Instead of registry.hub.docker.com, put here index.docker.io`

In the CI you have to update your `DOCKER_AUTH_CONFIG` with [index.docker.io](http://index.docker.io) auth property in order to be able to auth.

Does anybody have some clues about what happened?

---

<div class="post-metadata">

**Author:** ![jgalda](https://avatars.discourse-cdn.com/v4/letter/j/e9c0ed/32.png) [@jgalda](https://forums.docker.com/u/jgalda)\
**Post date:** [June 22, 2021, 2:00pm UTC](https://forums.docker.com/t/404-error-while-pulling-image-from-docker-hub/111510/7 "2021-06-22T14:00:08Z")

</div>

Seems to be working again

---

<div class="post-metadata">

**Author:** ![terpz](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/terpz/32/36125_2.png) [@terpz](https://forums.docker.com/u/terpz)\
**Post date:** [June 22, 2021, 4:51pm UTC](https://forums.docker.com/t/404-error-while-pulling-image-from-docker-hub/111510/8 "2021-06-22T16:51:52Z")

</div>

See this:

> [@Azure Container Instances](https://forums.docker.com/t/azure-container-instances/111515/4):
>
> There were some issues with some older URLs that are used for accessing the image registry portion of docker Hub but that seems to have been fixed. Can you validate that things are working again for you?

---

<div class="post-metadata">

**Author:** ![woan7905](https://avatars.discourse-cdn.com/v4/letter/w/ecd19e/32.png) [@woan7905](https://forums.docker.com/u/woan7905)\
**Post date:** [June 24, 2021, 8:28am UTC](https://forums.docker.com/t/404-error-while-pulling-image-from-docker-hub/111510/9 "2021-06-24T08:28:16Z")

</div>

Yes. works also for me.
