仮想サーバ/docker/Dockerfile
提供: 初心者エンジニアの簡易メモ
Dockerfileを使ってdocker imageを作る
$ vi Dockerfile FROM centos:centos7 RUN ["yum", "-y", "install", "nginx"] $ 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