A Docker image is the filesystem and configuration of our application and is further used to create Docker containers. There are two ways by which a Docker image can be created, which is either from scratch or from a parent image. In this recipe, we will learn how to create a Docker image from a parent image. This means an image created basically refers to the contents of its parent and subsequent declarations in the Dockerfile modify the parent image.