culTest

    One of the 50 questions in this topic

    How much do you know about Docker?

    Which Dockerfile statement is used to expose a container port?

    Answers

    PORT
    PUBLISH
    EXPOSECorrect
    OPEN

    The EXPOSE statement informs Docker that the container listens on the specified ports during execution. It doesn't actually publish the ports; serves as documentation and to enable automatic publishing when using docker run -P. To publish specific ports, use -p when running the container.