An Intro to Docker for Djangonauts
summary
Builds a minimal Dockerfile for a Django app using FROM Python 3.6, ENV to set unbuffered output, COPY requirements.txt into /code/, RUN pip install, WORKDIR /code, EXPOSE port 8000 and a CMD to start the server. Demonstrates docker build (image tagging), layered cache behavior when a requirements change forces a rebuild, and docker exec into containers. Shows a Postgres service and how to start everything with docker-compose up, run manage.py commands, and bring the stack down.
AI-written summary · about
chapters (18)
- 0:00Introduction and speaker intro
- 1:54Why Docker feels like magic
- 2:57Docker vs virtual environments
- 4:20Learning curve and personal journey
- 5:44Harry Potter analogy for Docker
- 7:29Images containers and Dockerfile
- 9:17Basic Dockerfile breakdown
- 12:49Building Docker images
- 14:58Understanding Docker layers
- 17:31Docker commands and info
- 19:16Running containers with Docker
- 20:19Exploring containers with exec
- 22:04Stopping and killing containers
- 23:29Introduction to Docker Compose
- 25:14Docker Compose YAML file
- 28:43Running Django with Docker Compose
- 32:11Managing containers with Compose
- 32:53Closing and resources
related talks
28mDocker-Composing Your Way to a Better Development Environment
01h 11mLearning to use Docker for development
47mCreating a containerized Django + React + PostgreSQL...
23mCleaning Up Your Python Environment Superfund Site
02h 28mWorkshop: Learn How to Dockerize Your Python Application
25mLeveraging Docker to Enable Learning
01h 02mDocker for Data Science: Reproducibility and Deployment
30mContainers Without the Magic
