Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

lnav-docker

A (very) simple Dockerfile + instructions to allow people to use https://github.com/tstack/lnav, even on Windows!

Features

  • Runs lnav in an Alpine Linux container.
  • Small and efficient image.
  • Can analyze logs from mounted directories or extracted ZIP archives.

Usage

Build

First, build the Docker image:

docker build -t lnav-docker .

Run

To analyze log files from a directory:

docker run --rm -v "$(pwd)/logs:/logs" lnav-docker /logs

To analyze logs inside a ZIP archive:

docker run --rm -v "$(pwd)/logs.zip:/logs.zip" lnav-docker sh -c "unzip -p /logs.zip | lnav"

Ensure that logs or logs.zip is present in the current working directory before running the container.

About

A (very) simple Dockerfile + instructions to allow people to use https://github.com/tstack/lnav, even on Windows!

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages