EasyEnv
Engineering/Courses/Catalog/Docker/Image Optimization and Security
Docker
IntermediateLesson 11 of 1330 min · hands-on

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 Security

What 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
  1. 1What Is Docker20 min
  2. 2Your First Container25 min
  3. 3Images and the Dockerfile30 min
  4. 4Building Custom Images35 min
  5. 5Container Networking30 min
  6. 6Volumes and Persistence30 min
  7. 7Docker Compose35 min
  8. 8Multi-Stage Builds35 min
  9. 9Environment Variables and Secrets25 min
  10. 10Healthchecks and Restart Policies25 min
  11. 11Image Optimization and Security30 min
  12. 12Registries and Publishing25 min
  13. 13Capstone: Shipping a Stack50 min

Explore other courses

Image Optimization and Security - Docker (English) | Engineering Courses