Public Repository

Last pushed: 2 years ago
Short Description
This is just the first example of using docker to deploy django.
Full Description

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:/#
root@9bc555af910b:/# service xqli_demo restart

Then loggin into http://0.0.0.0:8000/ with firefox. You will get the following content
Hello World
This is my first django app in docker
Have Fun

Docker Pull Command
Owner
elaineibm

Comments (1)
elaineibm
2 years ago

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