What is the purpose of the `FROM` instruction in a Dockerfile?

  1. To define environment variables
  2. To specify the base image
  3. To expose ports
  4. To start a container
Correct answer To specify the base image

Explanation

`FROM` sets the base image for the Docker image being built.

Update: Admin added a tag on this question

Topics

By Admin · · 50 views