Compare commits

..

No commits in common. "f07eb9fa12aa849b93c6f32f643a4580d3400fc3" and "befeedcacb8e0dde89e0209eff001b43fbe9594b" have entirely different histories.

View File

@ -1,14 +0,0 @@
#!/bin/bash -e
if [[ -z $1 ]]; then
echo "No container specified"
exit 1
fi
if [[ "$(docker ps -aq -f name=^/${1}$ 2> /dev/null)" == "" ]]; then
echo "Container \"$1\" does not exist, exiting."
exit 1
fi
log=$(docker inspect -f '{{.LogPath}}' $1 2> /dev/null)
truncate -s 0 $log