Docker driver for OpenStack Nova.
Free software: Apache license
For example:
$ python setup.py install
Note: There are better and cleaner ways of managing Python modules, such as using distribution packages or 'pip'. The setup.py file and Debian's stdeb, for instance, may be used to create Debian/Ubuntu packages.
In nova.conf:
compute_driver=novadocker.virt.docker.DockerDriver
In nova.conf:
[docker] # Commented out. Uncomment these if you'd like to customize: ## vif_driver=novadocker.virt.docker.vifs.DockerGenericVIFDriver ## snapshots_directory=/var/tmp/my-snapshot-tempdir
In glance-api.conf:
container_formats=ami,ari,aki,bare,ovf,ova,docker
Images may now be saved directly to Glance:
$ docker pull busybox $ docker save busybox | glance image-create --is-public=True --container-format=docker --disk-format=raw --name busybox
Note: At present, only administrators should be allowed to manage images.
The name of the image in Glance should be explicitly set to the same name as the image as it is known to Docker. In the example above, an image has been tagged in Docker as 'busybox'. Matching this is the '--name busybox' argument to glance image-create. If these names do not align, the image will not be bootable.
- Earlier releases of this driver required the deployment of a private docker registry. This is no longer required. Images are now saved and loaded from Glance.
- Images loaded from Glance may do bad things. Only allow administrators to add images. Users may create snapshots of their containers, generating images in Glance -- these images are managed and thus safe.
Join us in #nova-docker on Freenode IRC
- TODO