Docker pull fails with “Tag latest not found in repository” even when “latest” tag exists

I tried to pull the Fedora docker image using the following command but it failed with Tag latest not found in repository docker.io/library/fedora error:

# docker pull fedora
Using default tag: latest
latest: Pulling from library/fedora
62b0615068df: Pull complete 
cd1e9127a3f8: Verifying Checksum 
Pulling repository docker.io/library/fedora
Tag latest not found in repository docker.io/library/fedora

However, it succeeded when I pulled it with the latest tag explicitly specified.

  • Is it possible to super scale a dockerised selenium grid?
  • Raspberry-pi docker error: standard_init_linux.go:178: exec user process caused “exec format error”
  • Can't log to graylog2 docker container via HTTP endpoint
  • Enable Postgis extension Postgres in Dockerfile
  • Elastic Beanstalk and Dockerfile ARG instruction
  • Selenium for docker issue
  • docker pull fedora:latest
    latest: Pulling from library/fedora
    cd1e9127a3f8: Pull complete 
    Digest: sha256:52db7a1a18f173622a9b1a75354c7266220bffb7187c4880590805af0d7679d6
    Status: Downloaded newer image for fedora:latest
    

    In an attempt to understand this further, I tried to pull the CentOS docker image. However, I did not see this behavior in case of CentOS:

    docker pull centos
    Using default tag: latest
    latest: Pulling from library/centos
    Digest: sha256:1a62cd7c773dd5c6cf08e2e28596f6fcc99bd97e38c9b324163e0da90ed27562
    Status: Downloaded newer image for centos:latest
    

    Version Info

    # cat /etc/redhat-release 
    Red Hat Enterprise Linux Server release 7.2 (Maipo)
    # docker -v
    Docker version 1.9.1, build a34a1d5
    

    Can someone please help me understand this behavior?

  • Why am I unable to run django migrations via the 'docker-compose run web' command?
  • Install PHP 5.5.30 via DockerFile instead of PHP 5.5.9
  • How to get the Docker Container Id from inside a running docker image via Java API?
  • /bin/sh: 1: python: not found while running docker container
  • Config separate container to different host on Rancher platform
  • Pushing image to private docker registry with credentials
  • One Solution collect form web for “Docker pull fails with “Tag latest not found in repository” even when “latest” tag exists”

    Looks like Docker is handling network errors in a wrong way. E.g. DNS timeout may be reported as “Tag xxx not found”. That’s why an error may be intermittent. Saw that few times, changing DNS server to google DNS (8.8.8.8) and waiting for few minutes fixed this docker error for me.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.