docker / hub-feedback

Feedback and bug reports for the Docker Hub
https://hub.docker.com
233 stars 48 forks source link

Access denied while pulling few public Images from docker hub #2246

Open manali14 opened 2 years ago

manali14 commented 2 years ago

Problem description

Getting Error response from daemon: pull access denied for <image>, repository does not exist or may require 'docker login': denied: requested access to the resource is denied for a few public images while doing docker pull

docker info output

Docker Info:

Client:
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc., v0.8.2)
  compose: Docker Compose (Docker Inc., v2.6.0)
  sbom: View the packaged-based Software Bill Of Materials (SBOM) for an image (Anchore Inc., 0.6.0)
  scan: Docker Scan (Docker Inc., v0.17.0)

Server:
 Containers: 1
  Running: 1
  Paused: 0
  Stopped: 0
 Images: 2
 Server Version: 20.10.16
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: runc io.containerd.runc.v2 io.containerd.runtime.v1.linux
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 212e8b6fa2f44b9c21b2798135fc6fb7c53efc16
 runc version: v1.1.1-0-g52de29d
 init version: de40ad0
 Security Options:
  seccomp
   Profile: default
  cgroupns
 Kernel Version: 5.10.104-linuxkit
 Operating System: Docker Desktop
 OSType: linux
 Architecture: aarch64
 CPUs: 5
 Total Memory: 7.667GiB
 Name: docker-desktop
 ID: 2KQI:OFZP:GEO6:RWUF:ENNJ:U62L:S4TJ:J3IQ:5EQY:CLHL:V6KB:RMHY
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 HTTP Proxy: http.docker.internal:3128
 HTTPS Proxy: http.docker.internal:3128
 No Proxy: hubproxy.docker.internal
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
  hubproxy.docker.internal:5000
  127.0.0.0/8
 Live Restore Enabled: false

Example

docker pull mongo works fine docker pull testcontainers/ryuk gives above error

jcarter3 commented 2 years ago

Hey @manali14! Sorry for the delayed response, we were rolling out some backend features to make debugging these things easier. We've implemented better tracing logic here and are working on a tool users can run to help diagnose these things - but in the meantime we can construct the API calls manually to get what we need.

Would you mind using curl/postman/insomnia/something to do a GET to https://auth.docker.io/token?service=registry.docker.io&scope=repository:testcontainers/ryuk:pull using your docker username/password (or PAT) for basic auth and then sending me the X-Trace-ID header that is returned?