51

使用Dockerfile定制自己的docker镜像-风中流浪

 5 years ago
source link: http://blog.51cto.com/andyxu/2296339
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
我们都知道,在Linux系统下可以通过shell脚本来自动安装部署应用,这样不但免去了手动操作的麻烦,而且还可以通过一些自动化工具来实现批量安装部署。那么docker是否也可以通过脚本的方式定制镜像呢?当然可以,那就是Dockerfile,我们可以把创建应用镜像的操作都写入一个Dockerfile文件里,然后通过dockerbuild命令来构建自已的镜像,这个过程类似shell脚本的功能。dock

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK