If you want to locally test how containerd proxies for image registries for image pulls (including through mirrors) works, here is a setup that includes
- a local docker registry using the official docker registry image
- a local proxy using Squid with this image
- tshark if you want to watch the network traffic
Ensure local.registry points to 127.0.0.1 in /etc/hosts:
echo "127.0.0.1 local.registry" | sudo tee -a /etc/hosts