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
.