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 .
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 .