#docker build Image (Dockerfile)
- CentOS 7.4.1078 Image Maker
- Nginx image creation (based on front centos7 image)
- nginx+php Image Production
For more walkthrough, see the Readme file in Git
My git site https://gitee.com/almi/docker
# # # clone files to this directory git clone https://Gitee.com/almi/docker.git# # # Build Image Almi/Centos7, Version 1708
CD Docker/1. Centos7.4#进入目录docker Build-T Almi/centos7.4:1708. Docker Images #查看镜像 # # # run container centos7-1, based on almi/centos7:1708 Mirroring
Docker Run--name centos7-1-dit Almi/centos7.4:1708DockerPS-l### into the container
Docker exec-it centos7-1/bin/SHifconfig#查看ip地址exit #退出, shortcut key Ctrl+d### Delete a container, remove the mirror
DockerRM-F centos7-1Docker RMI Almi/centos7.4:1708#补充说明: Build File centos-7.4.1708-docker.Tar. XZ from Docker official
#https://github.com/CentOS/sig-cloud-instance-images/tree/CentOS-7.4.1708
Docker build image Centos7 Nginx php