I'm trying to set up a docker environment where a local, insecure mirror is used to speed up things. It's ok to have it insecure since it's just a local lab environment.
I'm using Sonatype Nexus Repository Manager OSS 3.35.0-02 as the local mirror.
I've set up the docker configuration as per documentation, with:
{
"registry-mirrors": ["http://192.168.8.10:8181"],
"insecure-registries": ["192.168.8.10:8181"]
}
docker info
seems to confirm that the settings have been loaded:
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
192.168.8.10:8181
127.0.0.0/8
Registry Mirrors:
http://192.168.8.10:8181/
Now, I can test that Nexus is working properly because this works:
docker rmi alpine:3.13.3 ; docker pull 192.168.8.10:8181/alpine:3.13.3
in the sense that the image is downloaded and I can see that it appears in the Nexus repo.
But running the plain command:
docker rmi alpine:3.13.4 ; docker pull alpine:3.13.4
seems to bypass the mirror since the image is downloaded, but it doesn't show up in the Nexus repository.
This happens both with macOS BigSur 11.5.1 + Docker Desktop 1.4.0 and a Vagrant VM running Ubuntu Server 20.04 with Docker version 20.10.7, build 20.10.7-0ubuntu1~20.04.2.
Thanks.