This is just the first example of using docker.
How to run:
root@xqli-VirtualBox:~# xqli_app=$(docker run -d -i -t -p 8000:8000 elaineibm/xqli_demo)
root@xqli-VirtualBox:~# docker attach $xqli_app
root@9bc555af910b:/# service xqli_demo restart
Then loggin into http://0.0.0.0:8000/ with firefox. You will get the following content
This is my first django app in docker
I add a service named xqli_demo under /etc/init.d in this container. and using update-rc.d xqli_demo defaults 99 to make this service to run when the container run. However it seems not work correctly. So I attach to this container and use service xqli_demo restart after this container is running