Skip to content
KALANBLON
Show contents

Chapter 3 of 7 · 10 min

Quiz: images and containers

Containers, images, docker commands, Dockerfiles and the layer cache: let's check that you master Docker's basics. You need 70% correct answers, and every answer is explained.

Quiz

6 questions · pass mark: 70%

  1. 1.What sets a container apart from a virtual machine?

    One answer

  2. 2.Which sentence correctly describes an image?

    One answer

  3. 3.With docker run -p 8080:80 nginx:1.29, which address should you open on your machine?

    One answer

  4. 4.Which instruction runs when the container starts, not during the build?

    One answer

  5. 5.Why copy requirements.txt alone, before the rest of the code?

    One answer

  6. 6.Which good practices make an image safer?

    Several answers possible

Your progress is saved on this device. Create a free account to keep your progress on all your devices.