cli.fail

Practice this fail.

It exited. It has notes.

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 ↗

You are in the correct Compose project. The api service exited with code 1, and its retained output may explain why.

It exited. It has notes.

$ docker compose ps -a

SERVICE STATUS

api Exited (1)

Which command reads its last 50 log lines without restarting it?

3 attempts remaining

Read why this fix works

It exited. It has notes.

docker compose logs --tail=50 api

docker compose logs reads the retained output for the selected service, including an exited container when its logs remain available. --tail=50 limits the output to the most recent 50 lines. Reading logs does not restart the service.

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

Copy your result