Docker Community Forums

Share and learn in the Docker community.

Docker swarm scale and new swarm nodes

I’m testing docker swarm on a multi node cluster.

version: 20.10.7

The point is that if I create a service with docker service create and then I join nodes everything works (I user --with-registry-auth, master node is logged in to a private registry on AWS) , it means applications are replicated on nodes with image pull and containers start.

if I kill the nodes, scale the service to 0 with:

docker service scale myserv=0

and then I join a new node and try scale up, the image on the node is not pulled down, it says “no such image”,
that’s strange since if I re-create the service it is able to pull the image on nodes. It is like docker service scale doesn’t login to the remote registry in the nodes.

Any tips ?

Thanks