Skip to content

Logging driver for Docker that saves container raw outputs (stdout and stderr) to a configured directory on the host.

License

Notifications You must be signed in to change notification settings

sa4zet-org/docker.logging.driver.file.simple.plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Check and build

docker.logging.driver.file.simple.plugin

Logging driver for Docker that saves container raw outputs (stdout and stderr) to a configured directory on the host. If the directory does not exist, the plugin creates it automatically.

Install

docker plugin install --grant-all-permissions ghcr.io/sa4zet-org/docker.logging.driver.file.simple.plugin

Uninstall

docker plugin disable ghcr.io/sa4zet-org/docker.logging.driver.file.simple.plugin
docker plugin rm ghcr.io/sa4zet-org/docker.logging.driver.file.simple.plugin

Options

All available options are documented here and can be set via --log-opt="KEY=VALUE".

Key Default Description
log-file-dir /tmp/ File path of the log files.

Usage

Run a container using this plugin:

docker run \
--rm \
--detach \
--name="example_container" \
--log-driver="ghcr.io/sa4zet-org/docker.logging.driver.file.simple.plugin" \
--log-opt="log-file-dir=${HOME}" \
debian:sid-slim \
/bin/sh -c 'ls -lah && >&2 echo "error\nexample\ntext"'

License

https://github.com/sa4zet-org/docker.logging.driver.file.simple.plugin/blob/master/LICENSE

About

Logging driver for Docker that saves container raw outputs (stdout and stderr) to a configured directory on the host.

Topics

Resources

License

Stars

Watchers

Forks

Packages