If docker stack is to be used to run a Docker Compose file on a Docker Swarm, how are the images referenced in the Docker Compose configuration made available on the Swarm nodes?
- docker stack builds the images locally and copies them to only those Swarm nodes which run the service.
- docker stack passes the images to the Swarm master which distributes the images to all other Swarm nodes.
- docker stack instructs the Swarm nodes to pull the images from a registry, although it does not upload the images to the registry.
- docker stack transfers the image from its local Docker cache to each Swarm node.
- docker stack triggers the build process for the images on all nodes of the Swarm.
Reveal Solution Next Question