How to resolve Error response from daemon: manifest for docker.artifactory.com:8081/:latest not found for docker hub

Amith Kumar Mutakari
2019-07-23 07:55

Subject

How to resolve Error response from daemon: manifest for docker.artifactory.com:8081/<docker image>:latest not found for default docker hub

Description
If we disable 'Enable Token Authentication' option from Artifactory docker remote repository then docker pull will fail.

For example :-

docker pull docker.jfrog.com:8081/centos:latest

Error response from daemon: manifest for docker.jfrog.com:8081/centos:latest not found

Request.log shows as below.

20190306113853|2242|REQUEST|127.0.0.1|anonymous|GET|/api/docker/docker/v2/centos/manifests/latest|HTTP/1.1|404|0

Resolution :-

Since , Docker Hub only supports token-based authentication we need to enable it to do the docker pull .
In order to achieve this ,we need to enable "Enable Token Authentication " option from Artifactory docker-remote repository options from UI as shown in the screenshot below:

And after this docker pull works as expected as shown in the example below.

docker pull docker.jfrog.com:8081/centos:latest

latest: Pulling from centos

Digest: sha256:184e5f35598e333bfa7de10d8fb1cebb5ee4df5bc0f970bf2b1e7c7345136426

Status: Image is up to date for docker.jfrog.com:8081/centos:latest

Request.log shows as below:-

20190306114018|3386|REQUEST|127.0.0.1|anonymous|GET|/api/docker/docker/v2/centos/manifests/latest|HTTP/1.1|200|1721

20190306114022|3795|REQUEST|127.0.0.1|anonymous|GET|/api/docker/docker/v2/centos/manifests/sha256:365fc7f33107869dfcf2b3ba220ce0aa42e16d3f8e8b3c21d72af1ee622f0cf0|HTTP/1.1|200|529