Docker explanation
1. Create Docke Image:
650) this.width=650; "style=" float:left; "src=" http://s3.51cto.com/wyfs02/M00/76/84/ Wkiol1zvzphrzr72aaaq8pybdl0380.png "title=" 2015-11-25 15:33:48 screen. png "alt=" wkiol1zvzphrzr72aaaq8pybdl0380.png "/ >
Docker build-t csphere/centos:7.1.
Explanation: Build loaded Dockerfile,-t alias Centos7 Mirror. Represents the current Dockerfile path, if Dockerfile no longer the current path, use a relative path/path the Docker build is created using a dockerfile Mirror
Docker images viewing Docker images
Create Dokcer container via Docker Image: Docker run-it interactive mode, to front end,-D back-end boot-p 22 port reboot unchanged--name base-p 2,222:22 Port 22 Random get port Mappings 22
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/76/85/wKioL1ZVaO2g7N8hAAA56dR1T-o352.png "style=" float: none; "title=" 2015-11-25 15:51:13 screen. png "alt=" Wkiol1zvao2g7n8haaa56dr1t-o352.png "/>
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/76/86/wKiom1ZVaJGRkTWuAAAtzm1YxSw003.png "style=" float: none; "title=" 2015-11-25 15:50:55 screen. png "alt=" Wkiom1zvajgrktwuaaatzm1yxsw003.png "/>
Get help with Docker assist run
2. Build PHP-FPM image
[Email protected]:~/docker-training/php-fpm$ Docker build-t csphere/php-fpm:5.4.
Docker run-d-P 8080:80--name website csphere/php-fpm:5.4
Docker exec-it Website/bin/bash
Docker Learning Notes