10. Some examples
❖ Run docker for launch server in second.
❖ Run docker for compiling modules
❖ Build docker image and run container
11. Example 1: Establish a LAMP in second
docker run -d -p 49001:80 dockerfiles/centos-lamp
12. Example 1.5: Run second LAMP in the same computer
❖ How much time do we need to launch second LAMP
server in VM?
❖ How much time do we need to launch second LAMP
server in Docker?
13. Example 1.5: Run second LAMP in the same computer
http://evan:49002
http://evan:49001
49002:8049001:80
< 1 Second !
14. Run VM for compiling modules
PHP 5
Python2
Python3
GCC 4.8
GCC 5.2
PHP 7
Original way in VM
15. Run docker for compiling modules
New way in Docker
gcc 5.2gcc 4.8
resultresult
16. Run docker for compiling modules
New way in Docker
Ubuntu 15.01 g++ cmake
mount volume
Windows 10
18. Build docker image and run container (ex: Linux App)
write Dockfiles
run image as Container
build docker Image
19. Build docker image and run container (ex: Linux App)
run sh in Docker Container
20. Limitations
❖ No Windows/Mac Image and Container for now
❖ Run on Windows/Mac will launch another ubuntu VM
which still limited its memory and CPU
21. How to use docker in our daily work
❖ Using dockerfile to store image in Gitlab for CI
❖ Ensure your computer (Host) stay in clean stage
❖ It is very easy to deliver build environment to another
college/vendor by passing dockerfile.