yesterday we've learn about basic docker introduction, so for today's article we will try to deploy our laravel project to our docker using docker LAMP, for docker lamp server we will use mattrayner/lamp image.
Install docker lampdocker pull mattrayner/lamp
after we finish pull the image, we have to run the image to be our container by simply run the following scriptdocker run -p "80:80" -v ${PWD}/app:/app mattrayner/lamp
now if you rundocker ps -a
you lamp container should be on running state.
continuedocker exec -ti #container_name bash
now you can access your container using linux scipt.
now you are good to go just simply using git clone and do the same step as you deploy your laravel project on your ubuntu.