Learning paths / Containers / Running containers

Check: running containers

Knowledge check · 5 min · Module 3, lesson 4 of 45 min left in this module

Module 3 · Running containersLesson 4 of 4

Goal: Confirm you can map a port, pass a setting, pick the right debugging tool, and say what a container shares with its host.

Four questions: three on this module, one from Module 1. Every answer explains itself, right or wrong.

You run docker run -d -p 8080:3000 my-app. The app inside listens on 8080. What does curl localhost:8080 get?
The same image must run with DEBUG=true on your laptop and DEBUG=false on a test server. What do you change?
A container keeps exiting a second after it starts, and it's set to --restart unless-stopped. What tells you why?
From Module 1: you start three containers on one laptop. What do they share?

Retry as often as you like.