Follow the latest container logs.
docker logs --tail 100 -f <container>Follow the latest container logs.
docker logs --tail 100 -f <container>Follow the latest container logs.
docker logs --tail 100 -f <container>| Option / clause | Description |
|---|---|
--tail <n|all> | Show the last n lines, or all available lines. |
-f, --follow | Continue streaming new log output. |
--since <timestamp> | Show logs since a time or relative duration. |
--until <timestamp> | Show logs up to a time. |
-t, --timestamps | Add timestamps to log lines. |
<container> | Specify a container name or ID. |
Review a command and its target before running it. Commands that alter files, services, accounts, disks, permissions or databases may be difficult to reverse. Test in a safe environment and keep backups.