1? mkdir docker_demo
2? cd docker_demo/
3? touch Dockerfile
4 vi Dockerfile #寫(xiě)入下面的數(shù)據(jù)
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 #寫(xiě)入下面的數(shù)據(jù)
FROM ubuntu
RUN apt-get update && apt-get install -y vim
COPY testfile /
5 docker build -t ubuntu-with-vi-dockerfile-2 .