A (very) simple Dockerfile + instructions to allow people to use https://github.com/tstack/lnav, even on Windows!
- Runs
lnavin an Alpine Linux container. - Small and efficient image.
- Can analyze logs from mounted directories or extracted ZIP archives.
First, build the Docker image:
docker build -t lnav-docker .To analyze log files from a directory:
docker run --rm -v "$(pwd)/logs:/logs" lnav-docker /logsTo 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.