Where to start First steps track · 15 stages
Linux Labs

Containers: Docker and compose

Quiz: a container from the inside

Question 9 of 10
Leave the quiz

Read the output

What will the last command show 15 seconds after the start?

$ sudo docker run -d --name job --restart on-failure alpine sh -c 'echo up; sleep 3; exit 0'
$ sleep 15; sudo docker inspect -f '{{.State.Status}} {{.RestartCount}}' job
Back A–D or ↵ Sign in to answer
Loading…