6.3 Accessing the File System with docker-ostk

To allow access to files on a container, the current working directory of the host running docker-ostk is bind-mounted into the container as /data. When you issue commands that require access to the container's file system, you must prefix the local file name with /data/. For example, if you have an image named cirros-0.3.4-x86_64-disk.img in the local working directory of the master node, you can use the following command to create an image using Glance:

$ docker-ostk glance image-create --name cirros --is-public True --disk-format qcow2 \
   --container-format bare --file /data/cirros-0.3.4-x86_64-disk.img