Reputation: 41
I use docker on a RockyLinux 8 LXC-Container on Proxmox 7-Host for a while and was able to pull images. For a few months now i am no more able to pull images from docker. The error message i get is:
Error response from daemon: Head "https://registry-1.docker.io/v2/library/hello-world/manifests/latest": read tcp 192.168.178.82:50660->18.209.128.237:443: read: connection reset by peer
I am not behind a proxy. The configuration worked fine in the beginning and i can't figure out what has changed since then. I have another instance of RockyLinux8 with docker on my Win10 using Hyper V. There i can pull images. I then tried to create another LXC with Ubuntu on my Proxmox and tried to run docker on there. I get the same error on ubuntu. So i tried to use an Ubuntu VM instead of LXC on my Proxmox, but still the same error. I guess there is something going wrong on my Proxmox server.
When i curl https://registry-1.docker.io/v2/library/hello-world/manifests/latest, this is the response:
{"errors":[{"code":"UNAUTHORIZED","message":"authentication required","detail":[{"Type":"repository","Class":"","Name":"library/hello-world","Action":"pull"}]}]}
docker login is working and i tried it several times to login and logout again. I searched everything i found related to this error, but found no solution.
Upvotes: 4
Views: 10212
Reputation: 26727
You need to get the Bearer token first with :
curl -sS --user "docker_user:password" "https://auth.docker.io/token?service=registry.docker.io&scope=repository:library/hello-world:pull"
then using $token in :
curl -sS --header "Authorization: bearer $token" "https://index.docker.io/v2/library/hello-world/manifests/latest"
Upvotes: 0