Docker build image Centos7 Nginx php

Source: Internet
Author: User
Tags docker run

#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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.