Multi entry point in a docker container
We all know that docker
container is supporting only one process as ENTRYPOINT or CMD to bootup the container. However, sometimes we may need to run multiple processes in one docker container . For example, a php container where you might need to start both nginx
and php-fpm
so that both of your nginx
and php-fpm
can share same source code files by mounting a disk or coping the files into the container. In this post we will see how to achieve…