logoalt Hacker News

egerestoday at 9:31 AM2 repliesview on HN

I wasn't able to pull some images and I lost 1h trying to diagnose network problems in my setup, but it didn't occur to me that "la liga" was the root cause . My workaround was to add "registry-mirrors": ["https://mirror.gcr.io"] in my /etc/docker/daemon.json


Replies

chaz6today at 11:30 AM

This is the correct answer.

Something that confused me for a while was the path "docker.io" used for pulling containers. There is not actually a container registry at "docker.io" - rather docker and podman are hard coded to convert it to either "registry-1.docker.io" or "index.docker.io".

matt_kantortoday at 12:17 PM

Depending on your use case, you may not require a hosted registry at all. You could instead push images to your servers from wherever they're built.

I use a little script[0] to automate that when deploying some personal projects, but really it could be as simple as `docker save`/`scp`/`docker load` (especially for a one-off situation or when the images are small).

[0]: https://github.com/mkantor/docker-pushmi-pullyu