仮想サーバ/docker/Dockerfile
提供: 初心者エンジニアの簡易メモ
Dockerfileを使ってdocker imageを作る
$ vi Dockerfile FROM centos:centos7 ENV PATH $PATH:/usr/bin RUN yum -y update RUN rpm -ivh http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm $ docker build -t name1:tag1 . $ docker images REPOSITORY TAG IMAGE ID CREATED SIZE centos centos7 a8493f5f50ff 2 weeks ago 192 MB name1 tag1 a8493f5f50ff 2 weeks ago 192 MB