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.
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 ./
Run the below command to get docker image from dockerhub.
docker pull bohai/diskimage-builder-dockerfile
1. run the docker image
docker run -it --privileged diskimage-builder-dockerfile /bin/bash
2. build your image
disk-image-build ubuntu vm