Thursday, October 22, 2020

Dockerizing Django Application

 Docker takes all the great aspects of a traditional virtual machine, e.g. a self-contained system isolated from your development machine and removes many of the drawbacks such as system resource drain, setup time, and maintenance.

Put simply, Docker gives you the ability to run your applications within a controlled environment, known as a container, built according to the instructions you define. A container leverages your machine’s resources much like a traditional virtual machine (VM). However, containers differ greatly from traditional virtual machines in terms of system resources.

Docker doesn’t require the often time-consuming process of installing an entire OS to a virtual machine such as VirtualBox or VMWare.

You create a container with a few commands and then execute your applications on it via the Dockerfile.

Docker manages the majority of the operating system virtualization for you, so you can get on with writing applications and shipping them as you require in the container you have built.

Dockerfiles can be shared for others to build containers and extend the instructions within them by basing their container image on top of an existing one.

The containers are also highly portable and will run in the same manner regardless of the host OS they are executed on. Portability is a massive plus side of Docker.

References:

https://semaphoreci.com/community/tutorials/dockerizing-a-python-django-web-application


No comments:

Post a Comment