import files

This commit is contained in:
Yann Autissier
2021-02-09 17:05:00 +01:00
parent f5c4576411
commit 44a6d37ba5
425 changed files with 23195 additions and 0 deletions
@@ -0,0 +1,7 @@
#!/bin/sh
# Author: Yann Autissier <yann.autissier@gmail.com>
[ -n "$1" ] && \
docker_log=$(docker inspect $1 2>/dev/null | grep '"LogPath": "*"' | sed -e 's/.*"LogPath": "//g' | sed -e 's/",//g') && \
[ -f "${docker_log}" ] && \
tail -n 100 ${docker_log} > ${docker_log}