Skip to content

appearance

Choose a theme

Tune the docs for your next build session.

Quiz

Test your understanding of the concepts covered in the Webapps with Docker chapter.

Q1. In `docker run -p 8888:5000 myapp`, what does the port mapping `-p 8888:5000` specify?
Q2. Which Dockerfile instruction sets the base image for subsequent build instructions?
Q3. Why is it a best practice to copy `requirements.txt` and run `pip install` BEFORE copying the rest of your application code (`COPY . .`)?
Q4. What is the primary difference between `RUN` and `CMD` in a Dockerfile?
Q5. When deploying a single-container application to AWS Elastic Beanstalk, what file is uploaded to configure image name and port mapping?