How to dockerize Django Web application
Hey there, welcome! In this article, I am going to teach you how to package and distribute an API built in Django and Django REST Framework , using Docker containers. For this article, I used an API I built in part 1 and part 2 of my articles on Django REST Framework ( DRF). However if you already have an existing Django project you want to containerize right away, you can also follow along as we go, step by step. What is Docker? Docker is an open platform that performs Operating System level virtualization also known as containerization . Container Vs Virtual Machine — Image Credit: Docker To help you put this into perspective, let’s compare Docker to a Virtual Machine(VM) like Virtual Box ; A VM will get physical resources like RAM, CPU, Network cards, etc and “slice and dice” them into virtual resources. It then provides the virtual resources on top of a hypervisor as smaller Virtual Machines that look and feel like the normal physical computer where you can then in