Docker & Containers Basics
Run, build and ship apps in containers, from your first docker run to multi-container apps with Compose
Ghosla Academy · Cloud & DevOps Team
Containers have become the standard way to package and run software, from startups to large IT companies. This course explains Docker in plain language and gets you running containers in the first section, then building your own images for a small Python web app. You will learn volumes, networking, environment variables and Docker Compose, finishing with a web app and PostgreSQL database running together. Along the way you will pick up good practices for image size and security that interviewers look for.
What you will be able to do
- Explain what containers are and how they differ from virtual machines
- Run, inspect and manage containers from the command line
- Write efficient Dockerfiles and build tagged images
- Persist data with volumes and connect containers over networks
- Pass configuration safely using environment variables
- Run multi-container apps with Docker Compose
What you build
- Containerise your own Python web app with a Dockerfile
- Multi-container web app with PostgreSQL using Docker Compose
What you need to start
- Comfort with basic command line usage
- A laptop with at least 8 GB RAM, or a free cloud lab environment
- Basic Python helps but is not required
Curriculum · 6 sections, 24 lectures
Why containers4 lectures
- The problem containers solveFree preview8 min
- Containers vs virtual machinesFree preview10 min
- Installing Docker12 min
- Quiz: container basics5 min
Images and containers4 lectures
- Running your first container12 min
- Images, tags and Docker Hub10 min
- Managing containers: logs, exec and stop12 min
- Quiz: images and containers5 min
Building images5 lectures
- Writing a Dockerfile14 min
- Containerising a Python Flask app14 min
- Image size, layers and .dockerignore10 min
- Project: containerise your own app20 min
- Quiz: building images5 min
Data, networking and configuration4 lectures
- Volumes and bind mounts12 min
- Ports and container networks12 min
- Environment variables and secrets10 min
- Quiz: data and networking5 min
Multi-container apps4 lectures
- Docker Compose basics14 min
- App plus database with Compose14 min
- Project: Compose a web app with PostgreSQL20 min
- Quiz: Compose5 min
Next steps3 lectures
- Container security and good practices8 min
- From Docker to the cloud and Kubernetes10 min
- Quiz: final review6 min
Who this is for
- Students moving towards DevOps, cloud or backend development
- Developers tired of 'it works on my machine' problems
- Freshers preparing for DevOps interviews