Rancher Azure Container Registry

Hi there,

In Azure I have setup the following.

  • 3 rancher servers with a loadbalancer in front of it
  • A mysql database that Rancher connects to
  • A swarm environment with 3 nodes
  • An Azure Container Registry
    All in the same resource group and subnet.

All works fine, but I can’t get the ACRegistry to work.
I successfully added the registry via the rancher webui and I can successfully login (docker login) from the rancher servers or swarm nodes.
When I (as an example) pull nginx one of the rancher servers, tag it and push it to the registry it works and if I do a docker images I can see the image:

[root@rancherserver1 ~]# docker tag nginx:latest decoratorregistry.azurecr.io/mynginx:latest
[root@rancherserver1 ~]# docker push decoratorregistry.azurecr.io/mynginx:latest
The push refers to a repository [decoratorregistry.azurecr.io/mynginx]
48be3b91dcb8: Pushed
a4fc47c1db15: Pushed
f85d5ff897c4: Pushed

[root@rancherserver1 ~]# docker images decoratorregistry.azurecr.io/mynginx
REPOSITORY TAG IMAGE ID CREATED SIZE
decoratorregistry.azurecr.io/mynginx latest 46102226f2fd 7 days ago 109MB

But on the swarm nodes I cannot see the image:
[root@decoratorproxynode1 ~]# docker images decoratorregistry.azurecr.io/mynginx
REPOSITORY TAG IMAGE ID CREATED SIZE

When I try to run a container with the image (via Portainer) I get an error:
Name: mynginx
Image: mynginx
Registry: decoratorregistry.azurecr.io

Error: No such image: decoratorregistry.azurecr.io/mynginx:latest

In the azure portal I can see the image as well in the registry.

Anyone knows what I am doing wrong here?

With kind regards,

Bram

When I do a docker pull on one of the swarm machines it works fine.
Anyone how can help me out?