Chandan Rajpurohit

An Artist With Technical Skills

Fetch the logs of a container

docker logs [OPTIONS] CONTAINER

The docker logs command batch-retrieves logs present at the time of execution.

The docker logs –follow command will continue streaming the new output from the container’s STDOUT and STDERR.

docker logs --follow CONTAINER

Leave a Reply

%d bloggers like this: