Lynis and containers

Updated at

Running in a Docker container

With its low number of requirements, Lynis can perform a scan within a container.

docker run -d --name tmp-container --entrypoint=tail alpine -F junk docker exec -t tmp-container apk update docker exec -t tmp-container apk add git docker exec -t tmp-container git clone https://github.com/CISOfy/lynis docker exec -t --workdir=/lynis --env LANGUAGE=en --env LANG=en --env _=none tmp-container ./lynis audit system --no-colors