Blogger Information
Blog 10
fans 0
comment 0
visits 6303
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
docker入门到进阶四
.
Original
402 people have browsed it

初识Dockerfile
Dockerfile 就是用来构建docker镜像的构建文件!命令脚本!先体验一下!
通过这个脚本可以生成镜像,镜像是一层一层的,脚本一个个的命令,每个命令都是一层!
#创建一个dockerfile文件,名字可以随机  建议Dockerfile
#文件中的内容 指令(大写) 参数
[root@localhost docker-test-volume]# vim dockerfile1
FORM centos

VOLUME ["volume01","volume02"]

CMD echo "---end---"
CMD /bin/bash
#这里的每个命令,就是镜像的一层

原文链接:http://www.heimajinpai.cn/wordpress/index.php/2022/03/30/docker-2-2/

Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post