Swarm mode image orchestration details

I have setup a 3 node cluster(with no Internet access) with 1 manager and 2 worker-nodes using the standard swarm documentation.

How does the swarm manager in swarm mode know about the images present in worker nodes.Lets say I have image A in worker-node-1 and image B in worker-node-2 and no images in the manager-node.

Now how do I start container for image A using the manager ? And will it start in manager or node-1 ?
And when I query manager for the list of images will it give the whole list with A and B in it ?

Does anyone know how this works. Couldn’t get the details from the documentation.