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.
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?
Fixed. By hand.
docker compose logs --tail=50 apidocker 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 does not affect your daily score or streak.