QuestionQ37

VerifiedContainer Virtualization

When docker stack is used to run a Docker Compose file on a Docker Swarm, how are the images referenced in the Docker Compose configuration made available to the Swarm nodes?

Explanation

Docker Swarm workers obtain service images from a container registry when required; they use a matching cached image if available, otherwise pull it from Docker Hub or a private registry. docker stack deploy does not build, upload, or distribute local images, so locally built images must be pushed to a registry separately.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!