Sometimes you can encounter issue when pulling images from docker.io or ghcr.io, we can resolve this by add proxy to docker. Here is how what we can do.
1. Find docker.service using:
sudo systemctl status docker
You will see something like this:
● docker.service - Docker Application