cli.fail

Practice this fail.

When did it happen?

Docker · Restart as often as you like

Read the error, choose a command, and learn
why it works. Nothing runs on your machine.

Browse all practice ↗

Docker · Beginner

Read the most recent 20 log lines from web with timestamps. Return after reading; do not follow indefinitely.

When did it happen?

$ docker logs web

The event order needs timestamps.

Which command reads 20 recent lines with timestamps?

3 attempts remaining

Read why this fix works

When did it happen?

docker logs --timestamps --tail 20 web

--tail limits the lines and --timestamps adds Docker’s timestamps to log entries. Omitting --follow makes the command return after the retained output.

Practice rounds do not affect the daily score or local streak. Try today’s challenge, or choose another scenario.

Copy your result