Maybe I missed something, but I made a local docker image. I have 3 node. Two workers and one manager. I use labels as a limitation. When I start a service for one of the workers through a restriction, it works fine if this image is publicly available.
That is, if I do this:
docker service create --name redis --network my-network --constraint node.labels.myconstraint==true redis:3.0.7-alpine
Then the redis service is sent to one of the work nodes and is fully functional. Similarly, if I run my locally built image WITHOUT restriction, since my manager is also a worker, he receives a manager assignment and works fine. However, when I add a constraint that it fails on the working node, from docker service ps 2l30ib72y65h I see:
... Shutdown Rejected 14 seconds ago "No such image: my-customized-image"
Is there a way to get workers to access local images in the swarm node manager? Does it use a specific port that might not be open? If not, what should I do - start the local repository?
source share