hadoop@hadoop-virtual-machine:~/Docker/dockerFile$ cat dockerFile
# First Dockerfile
FROM ubuntu:14.04
MAINTAINER dormancypress "dormancypress@outlook.com"
RUN apt-get update
RUN apt-get install -y nginx
EXPOSE 80
hadoop@hadoop-virtual-machine:~/Docker/dockerFile$
hadoop@hadoop-virtual-machine:~/Docker/dockerFile$ sudo docker build -t="docker_test1" -f dockerFile .
Sending build context to Docker daemon 2.048kB
Step 1/5 : FROM ubuntu:14.04
---> 2c5e00d77a67
Step 2/5 : MAINTAINER dormancypress "dormancypress@outlook.com"
---> Using cache
---> 8127af961445
Step 3/5 : RUN apt-get update
---> Using cache
---> 87326028ed02
Step 4/5 : RUN apt-get install -y nginx
---> Using cache
---> 66bca2bd3a39
Step 5/5 : EXPOSE 80
---> Using cache
---> 963ea95f99d6
Successfully built 963ea95f99d6
Successfully tagged docker_test1:latest
hadoop@hadoop-virtual-machine:~/Docker/dockerFile$
docker run -p 80 --name cmd_test1 -d