Starting application container

suggest change

Once we have an image ready, we can start and serve the same. In order to create a container from the image, use

docker run -p 80:80 -d <Image name>

In the command above -p 80:80 would forward port 80 of your server to port 80 of the container. The flag -d tells that the container should run as background job. The final specifies which image should be used to build the container.

Checking container

In order to check running containers, simply use

docker ps

This will list out all the containers running on docker daemon.

Application logs

Logs are very important to debug the application. In order to check on them use

docker logs <Container id>

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:


Docker deployment:
* Starting application container

Table Of Contents
2 Arrays
4 Types
10 Cookies
14 JSON
15 SOAP
17 cURL
19 XML
21 Traits
35 UTF-8
36 URLs
38 PHPDoc
41 Loops
44 Closur
72 YAML
77 Cache
78 Streams
81 PDO
82 SQLite3
83 Sockets
87 MongoDB
93 IMAP
94 Redis
95 Imagick
100 Docker deployment
102 APCu
108 PSR