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 .
本文标题:DockerFile 书写
本文链接:https://www.haomeiwen.com/subject/kjuzhftx.html
网友评论