A simple Docker configuration to create Django examples.
Start a Django project with name mysite. You can use a different name.
docker-compose run web django-admin startproject mysite .
After the docker-compose command completes, list the contents of your project.
ls -l web
Start Django development server.
docker-compose up
Build the image of web service
docker-compose build web
Save the image built
docker save django-image_web -o django-image_web.tar