Command

Docker Read Container Logs Command

The Docker command to read container logs is docker logs CONTAINER.

Quick Answer

Command
docker logs CONTAINER
DockerCommand

Read Container Logs

Type this command
docker logs CONTAINER

Prints the output a container has written. Add -f to keep watching new lines.

Learn More

How to read container logs in Docker

  1. Open the terminal or command interface for Docker.
  2. Type docker logs CONTAINER, replace any placeholders, and run it.

Docker Read Container Logs Command

Run docker logs CONTAINER.

Related Commands

Frequently asked questions

What is the Docker command to read container logs?

Run docker logs CONTAINER.

Where do I type this Docker command?

Type it in the terminal or command-line interface used by Docker.

Does this Docker command work on Mac and Windows?

Yes. The command text is the same on both platforms when the tool is installed.

Official source · How we verify