From this lesson you will从这里你将学到1,Make a Dockerfile制作一个Dockerfile2,Build a Docker Image and run构建镜像并且运行3,Learn about 3 Basic Dockerfile commands学会三个Dockerfile命令4,Some tips一些提示 环境:Centos7,Docker CE 到开terminal命令行 1, sudo vi Dockerfile 输入如下内容退出保存: FROM…
文件说明 此文件用于docker镜像文件的制作 基本结构 Dockerfile文件由行命令组成,以#开头注释行 一般分为四部分,基础镜像信息.维护者信息.镜像操作指令和容器启动执行指令. 例如 #Depending on the operating system of the host machines(s) that will build or run the containers, the image specified in the FROM statement may need to b…