EasyEnv
Engineering/Courses/Catalog/Docker/Building Custom Images
Docker
IntermediateLesson 4 of 1335 min · hands-on

Building Custom Images

Part of the Docker course

The Dockerfile from the last lesson only ever installed software, it never brought any of your own files into the image, and it never controlled where inside the image its commands actually ran. A real application needs both: your source code copied in, and a sensible folder to work from.

FROM and RUN gave you a bag packed with software, but so far nothing of yours has gone into it. COPY takes files from your project folder, on your own computer, and places them inside the image at build time ...

Want to learn Docker Building Custom Images in a real environment?

Click below, get a fresh Linux box with Docker ready to go, and work through Building Custom Images hands-on with an AI tutor that knows your code.

Start this lessonBuilding Custom Images

What you'll learn

  • COPY
  • WORKDIR
  • ENV
  • EXPOSE
  • Layer caching
  • .dockerignore

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

Building Custom Images - Docker (English) | Engineering Courses