What are the most common instructions in Docker file?

Some of the common instructions inDockerfileareas follows:

  1. FROM: We use FROM to set the base image for subsequent instructions. In every valid Dockerfile, FROMis the first
    instruction.
  2. LABEL: We use LABEL to organize our images as per project, module, licensing etc. We can also use LABEL to help in
    automation. InLABELwespecify a key-value pair that can be later used for programmatically handling the Dockerfile.
  3. RUN : We use the RUN command to execute any instructions in a new layer on top of the current image. With each RUN command we add something on top of the image and useit in subsequent steps inDockerfile.
  4. CMD: We use CMDcommand to provide default values of an executing container. In a Dockerfile, if we include multiple CMD commands, then only the last instruction is used.