dockerfile指令格式
已经存在的镜像
from <image>
from <image> :<tag>
dockerfile的例子
#First Dockerfile
FROM ubuntu:14.04
MAINTAINER dormancypress "dormancypress@oytlook.com"
RUN apt-get update
RUN apt-get install -y nginx
EXPOSE 80
3,指令模式
RUN <command> (shell模式)
使用 /bin/sh-c command
RUN ["executable","param1","param2"] (exec模式)
exec 模式下可以执行其他模式下的shell指令
使用:RUN ["/bin/bash","-c","echo hello" ]
每个run命令是一行