'how to make docker pull the latest version each time the docker-compose up

Is it possible for docker-compose file to pull the latest version each time I run docker-compose up

I now I can execute the pull command before the compose up. but I look to shortcut the steps.



Solution 1:[1]

Try with docker-compose pull && docker-compose up

Sources

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

Source: Stack Overflow

Solution Source
Solution 1 jackops