..
聲明:
本博客歡迎轉發,但請保留原作者信息!
博客地址:http://blog.csdn.net/halcyonbaby
新浪微博:@尋覓神蹟
內容系本人學習、研究和總結,如有雷同,實屬榮幸!
diskimage-builder是openstack tripleO項目的子項目,主要用於定製雲上使用的虛擬機鏡像。
項目依賴於一些軟件/庫,爲了方便使用,我把項目打成了一個Docker image。
項目目前放在github上,並依賴於Dockerhub的autobuild功能進行自動構建。
diskimage-builder-dockerfile
Diskimage-builder is a tool for building cloud image in openstack.
This project dockerize the diskimage-builder, then we can use the tool without installing and configuring it.
manual build image
Run the below commands.
1. git clone https://github.com/ContainerTribe/diskimage-builder-dockerfile
2. cd diskimage-builder-dockerfile
3. docker build -t diskimage-builder-dockerfile:latest ./
download image from dockerhub
Run the below command to get docker image from dockerhub.
docker pull bohai/diskimage-builder-dockerfile
how to build an image
1. run the docker image
docker run -it --privileged diskimage-builder-dockerfile /bin/bash
2. build your image
disk-image-build ubuntu vm