Learn Everything

Paths/DevOps Engineer/Docker / Logs & Inspection

Practice Taskbeginnerdocker:24Ask AI

Capture Container Output

Run the app, capture its logs into a file with shell redirection and verify the port it listens on. Reading container output is the first step of debugging any container.

Validator

⏱ 0:00

IDLE — checks run live as you type commands; submit when done

01Requirements

live checks
  • A container from app:latest is running○
  • File ~/report/container.log exists containing the container's output○

02Walkthrough

1 of 5 revealed
  1. 01

    Start the app container

    Detached with no port mapping — logs are the focus here, not networking.

    docker run -d app:latest
  2. 4 locked · each failed submit reveals one

03Stuck?

0 of 3 revealed

Take a hint without losing the lab — each one points at the thing to look at, not at the answer.

04AI Tutor

guides, never solves

Tell me what you're stuck on — I'll nudge, not solve. Which requirement are you looking at?

04Notebook

saved locally in this browser

learner@lab — docker:24

↑/↓ recalls commands · Ctrl+Enter submits · type help for the command list