Where to start First steps track · 15 stages
Linux Labs

Containers: Docker and compose

Quiz: a container from the inside

Question 1 of 10
Leave the quiz

The docker ps -a statuses and the main process, docker logs, the container name, port publishing with -p, -e variables and the --restart policies. The questions follow the lessons “Image, container and process” and “Ports, variables and restart”.

10 questions · threshold 70%

Read the output

What will the STATUS column show for web a couple of seconds after the start?

$ sudo docker run -d --name web busybox httpd -p 8080
c0bb4b0047ecd5aed5f9f119138dc896ef728739312dabc83bdb6d4cb900b205
$ sleep 2; sudo docker ps -a
A–D or ↵ Sign in to answer
Loading…