什么是镜像,镜像是怎么产生的,通过这节的学习的Docker container机制要比虚拟机的机制要小巧,原因何在?本节课程的内容是连接12节的,所以肯定跟12节的github有关系:https://github.com/limingios/docker.git
####什么是Image
####开始Image的表演
首先启动vagrant,在上一节创建的虚机
![](https://upload-images.jianshu.io/upload_images/11223715-4b73db9b70d13972.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
![](https://upload-images.jianshu.io/upload_images/11223715-a36bd3c984bc3b2f.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
![image.png](https://upload-images.jianshu.io/upload_images/11223715-82715bff20e27287.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
![](https://upload-images.jianshu.io/upload_images/11223715-1bf9dfd498501dec.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
![](https://upload-images.jianshu.io/upload_images/11223715-7d1bbecc0516970f.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
* 进入容器内部
``` bash
#创建文件
touch test.txt
#执行yum安装
yum install vim
PS:认识了Image,下次如何创建自己的Image。实践中,欢迎大家持续关注。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。