Too Long; Didn't Read
Get PHP Composer to Run on Docker Container [A How To Guide] GetPHPHPH composer to run on Docker containers. The guide uses Docker-composer to install a PHP package on a Docker container. A dedicated composer docker image, map my project inside, and execute composer commands. A much better approach is to use composer library - "predis/predis" library. This library needs to get installed once container gets started. It can be used to update or install dependencies.