culTest

    One of the 50 questions in this topic

    How much do you know about Docker?

    Which Dockerfile statement is used to execute commands during image build?

    Answers

    EXEC
    CMD
    RUNCorrect
    EXECUTE

    The RUN statement executes commands during image construction and creates a new layer with the results. It is used to install packages, compile code, create users, etc. Each RUN creates an additional layer, so it is common to chain commands with && to minimize the number of layers.