Beginner Docker & Containers
Q25 / 100

What command shows logs output from a running container?

Correct! Well done.

Incorrect.

The correct answer is A) docker logs <container>

A

Correct Answer

docker logs <container>

Explanation

"docker logs <container>" fetches the stdout/stderr output of a container's main process; adding "-f" follows the log stream in real time.

Progress
25/100