culTest

    One of the 50 questions in this topic

    How much do you know about Docker?

    Which Dockerfile statement is used to define the working directory inside the container?

    Answers

    DIRECTORY
    CD
    WORKDIRCorrect
    PATH

    The WORKDIR statement sets the working directory for subsequent statements in the Dockerfile and for the container's main process when it runs. If the directory does not exist, it is created automatically. It is preferable to using RUN cd /path to change directories.