DockerFile 书写
2018-04-11 本文已影响0人
流雨声
1 mkdir docker_demo
2 cd docker_demo/
3 touch Dockerfile
4 vi Dockerfile #写入下面的数据
FROM ubuntu
RUN apt-get update && apt-get install -y vim
COPY testfile /
5 docker build -t ubuntu-with-vi-dockerfile-2 .
![](https://img.haomeiwen.com/i11498116/65c1ba8f00bbaee7.jpg)
![](https://img.haomeiwen.com/i11498116/e3f25cfaf9cacc8a.jpg)