Log rotation container with remote storage of log files in Manta (Joyent's object store)
942
Please make sure you have the following:
export MANTA_USER=jschutt; export MANTA_KEY_ID=10:5b:f6:6d:bb:e0:ee:ed:b8:4b:d8:81:bb:0b:6e:e8 ;
export MANTA_URL=https://us-east.manta.joyent.com ;
Valid keys for the JPC should be stored in /root/.ssh
Map the following volumes /var/lib/docker (This is the standard directory for docker) /mnt/manta (This is used as a temp space for the log files
To ensure all the log files for a given unix instance are stored under the same directory use the environment valible $DOCKER_HOST
Make sure ~~/store/dockerLogs is a valid Manta path
An example of how to start the log4 manta container
docker run --name=log4manta -v /var/lib/docker/:/var/lib/docker -d -v /mnt/manta:/mnt/manta -v /root/.ssh/:/.ssh/ -e DOCKER_HOST=
hostnamelog4manta
To reassamble a containers log file you can use the following command
mfind /jens/stor/dockerLogs/ | grep | sort | xargs mget -- >> /tmp/alllogs.log
Content type
Image
Digest
sha256:4ed390b99…
Size
147.7 MB
Last updated
almost 11 years ago
docker pull eviking/log4manta