Docker Basics
Containers help keep local, CI, and production environments consistent.
Concepts to learn
- Images vs containers
- Layers and caching
- Volumes and bind mounts
- Port mapping
- Environment injection
- Multi-stage builds
Minimum workflow
- Build image from Dockerfile
- Run container with env variables
- Persist local data with volumes
- Use
docker composefor multi-service apps