Image Optimization and Security
Part of the Docker course
Almost no production incident involving Docker is a Docker bug. The recurring pattern is much duller: an image built from node:latest two years ago, running as root, 900MB, carrying every known vulnerability in a distribution nobody has updated, because it worked on the day it was built and nothing since then has said otherwise.
None of the fixes are difficult. They are four habits, each worth a few lines in a Dockerfile, and together they remove most of the risk and most of the size. This lesson is those four habits and the tools that check them. ...
Want to learn Docker Image Optimization and Security in a real environment?
Click below, get a fresh Linux box with Docker ready to go, and work through Image Optimization and Security hands-on with an AI tutor that knows your code.
Start this lessonImage Optimization and SecurityWhat you'll learn
- Small bases like alpine and distroless
- USER non-root
- Pinning versions
- Docker scout
- Trivy
- Multi-arch idea
Read this lesson in your language
All lessons in this course
13 lessons- 1What Is Docker20 min
- 2Your First Container25 min
- 3Images and the Dockerfile30 min
- 4Building Custom Images35 min
- 5Container Networking30 min
- 6Volumes and Persistence30 min
- 7Docker Compose35 min
- 8Multi-Stage Builds35 min
- 9Environment Variables and Secrets25 min
- 10Healthchecks and Restart Policies25 min
- 11Image Optimization and Security30 min
- 12Registries and Publishing25 min
- 13Capstone: Shipping a Stack50 min
