Command

Docker Follow Container Logs Live Command

The Docker command to follow container logs live is docker logs -f CONTAINER.

Quick Answer

Command
docker logs -f CONTAINER
DockerCommand

Follow Container Logs Live

Type this command
docker logs -f CONTAINER

Keeps the log open and prints new lines as they arrive.

Learn More

How to follow container logs live in Docker

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

Docker Follow Container Logs Live Command

Run docker logs -f CONTAINER.

Related Commands

Frequently asked questions

What is the Docker command to follow container logs live?

Run docker logs -f 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