'docker-compose - using a DockerFile or an official image

docker-compose has two ways to launch containers - one is to build from a DockerFile using the build declaration and the other is to build from an image using the image declaration in the yaml. What are the considerations that determine one option versus the other?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source