Error response from daemon: error parsing HTTP 404 response body: unexpected end of JSON input: “”
Possible explanation
It is essentially getting an 404 html page from gitlab instead of a json with the manifest.
What I’ve tried
Producing new tokens (both project tokens and personal tokens, both with read_registry and write_registry, and the appropriate permission level)
Downgrading docker and restarting the daemon
Using someone else’s keys in the .docker/conf.json
Deleting .docker, removing the docker package and reinstalling
Using another computer with my credentials (docker version 27.3.1)
No one else in my team is having/has had this issue.
Nothing seems to fix it. People have told me no changes have been made to the company gitlab host.
If everyone else can access the gitlab registry at your company, then there could be a proxy setting on your machine. Since the login command worked, it is possible that only some URLs are blocked by that proxy setting or that you mistype something in the image URL, but I don’t think it would result an HTTP 404,
You could ask the GitLab administrators to check the GitLab access logs if they see anything logged triggered by your request. Something has to return that HTTP 404, and only the server could tell what was requested.
Or you could try curl to see if that can access the URL, but you can search for similar issues on the GitLab forum