What does the `RUN` instruction do in a Dockerfile?

  1. Defines a default command
  2. Executes a command at container runtime
  3. Executes a command at image build time
  4. Deletes a file
Correct answer Executes a command at image build time

Explanation

`RUN` is used to execute commands while building the image.

Update: Admin added a tag on this question

Topics

By Admin · · 47 views