diskimage-builder/docs/docker.md
Derek Higgins e7d105a751 Add tar as an output type
Add support for d-i-b to create tarballs, the primary consumer for
tarball images would be linux containers.

Change-Id: I27d67401f3e4415226a4a51e1dde46f739c0220a
2014-06-11 10:48:50 +01:00

18 lines
515 B
Markdown

Creating Docker Images
======================
disk-image-create can be used to create a tarball suitable to be imported as a
docker image. To do this you can change the output of disk-image-create to tar
with the -t flag and run docker e.g.
```
disk-image-create -o image -t tar fedora selinux-permissive
```
Assuming you have docker running and have permission to use it, the tarball can
be imported into docker and run.
```
docker import - image:test1 < image.tar
docker run -t -i image:test1 /bin/bash
```