| Start |
|---|
| Get docker image for php In order to deploy the application on docker, first we need to get the image from registry. This will get you the latest version of image from official php repository. Generally speaking, |
| Writing dockerfile
The first line is pretty straight forward and is used to describe which image should be used to build out new image. The same could be changed to any other specific version of PHP from the registry. Second line is simply to upload The third line would copy the codes in current directory to The last line would simply open up port 80 inside the docker container. Ignoring filesIn some instances there might be some files that you don't want on server like environment configuration etc. Let us assume that we have our environment in |
| Building image Building image is not something specific to Once the image is built, you can verify the same using Which would list out all the images installed in your system. |
| Starting application container Once we have an image ready, we can start and serve the same. In order to create a In the command above Checking containerIn order to check running containers, simply use This will list out all the containers running on docker daemon. Application logsLogs are very important to debug the application. In order to check on them use RemarksThis document assumes that docker is installed and the daemon running. You can refer to Docker installation (opens new window) to check on how to install the same. |
Read Article
https://develop.horje.com/learn/1434/reference