Slide 10
Slide 10 text
SUPINF Inc. // twitter.com/toricls
$ cat Dockerfile
$ cat Dockerfile
FROM ubuntu:16.04
RUN \
apt-get update && \
apt-get install -y nginx
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
Docker୦ŵƓƫƆŸ
LjȅȜǜƿʊƸ
$ cat Dockerfile
FROM ubuntu:16.04
RUN \
apt-get update && \
apt-get install -y nginx
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
$ docker build -t my-awesome-nginx .
...
...
$ cat Dockerfile
FROM ubuntu:16.04
RUN \
apt-get update && \
apt-get install -y nginx
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
$ docker build -t my-awesome-nginx .
...
...
$ docker run -p 80:80 my-awesome-nginx
...