Docker Fundamentals — Hard
Key points
- Docker image layers add filesystem overhead
- Chaining commands in a single RUN instruction reduces layer count
- Multi-stage builds help discard unnecessary layers
- Cleaning up in the same RUN instruction optimizes image size
- Optimizing layers improves Docker performance
Ready to go further?
Related questions
