2. Getting Started with Dockerfiles
Overview
In this chapter, you will study the form and function of a Dockerfile and its directives, including FROM, LABEL, and CMD, with which you will dockerize an application. The chapter will provide you with knowledge of the layered filesystem of Docker images and the use of caching during the Docker build process. By the end of this chapter, you will be able to write a Dockerfile using the common directives and build custom Docker images with the Dockerfile.
Introduction
In the previous chapter, we learned how to run our first Docker container by pulling a pre-built Docker image from the Docker Hub. While it is useful to get pre-built Docker images from Docker Hub, we must know how to create custom ...
Get The Docker Workshop now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.