A Docker image is a read-only template that houses a set of instructions which are required for creating a container that you could use as an application package containing pre-configured environments that enabled to run on Docker platforms.
And each Docker image consists of numerous layers. These layers contain a set of different instructions in your Docker File and are called Docker layer.
There are two types of layers, layer, and intermediate layers. Commands like RUN, COPY, ADD create a layer, whereas other instructions create intermediate layers, that won’t affect the size of a Docker Image.
Are you aspiring to become a Docker expert? Then have a look at Intellipaat’s Docker training course which offers you with training course and guided projects for enhancing practical exposure.
Do watch our YouTube video on Docker from our experts to help you gain a better understanding.