Docker pull ubuntu:20.04 issue

 docker pull ubuntu:20.04
20.04: Pulling from library/ubuntu
13b7e930469f: Pulling fs layer
error pulling image configuration: image config verification failed for digest sha256:b7bab04fd9aa0c771e5720bf0cc7cbf993fd6946645983d9096126e5af45d713

I am facing issue while pulling docker ubuntu 20.04. I am using ubuntu 20.04 version and using docker.io I have installed my docker.

Client: Docker Engine - Community
 Version:           24.0.2
 API version:       1.43
 Go version:        go1.20.4
 Git commit:        cb74dfc
 Built:             Thu May 25 21:52:13 2023
 OS/Arch:           linux/amd64
 Context:           default

Server: Docker Engine - Community
 Engine:
  Version:          24.0.2
  API version:      1.43 (minimum version 1.12)
  Go version:       go1.20.4
  Git commit:       659604f
  Built:            Thu May 25 21:52:13 2023
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.6.21
  GitCommit:        3dce8eb055cbb6872793272b4f20ed16117344f8
 runc:
  Version:          1.1.7
  GitCommit:        v1.1.7-0-g860f061
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

This forum is the official Docker forum. We do not support custom packages like docker.io.

It’s probably better to check the official install instructions and install latest Docker v29.

I would say that it is true that docker.io is not supported by Docker Inc, but that is still based on Moby, which is practically Docker CE, so while it is maintained by the maintainers of the Linux distribution, the community could still help with that too. On the other hand, most of us use the official Docker CE and it is often hard to tell why a non-official variant of it fails, so installing Docker from the official repo maintained by Docker Inc is still the recommended way.

You could also search for the error message and find this post

https://github.com/docker/cli/issues/5806#issuecomment-2646473440

where a developer pointed out that this kind of error can be caused by corrupted filesystems.

You have an old Docker IO installation on an old Ubuntu distribution, so even if it were an issue in Docker IO, it is probably not supported by the Ubuntu maintainers either. If it is filesystem corruption, you probably can’t pull any image, but if you can, you can try reinstaling Docker after you backed up all the data if you have any on volumes.