Compare commits
No commits in common. "f07eb9fa12aa849b93c6f32f643a4580d3400fc3" and "befeedcacb8e0dde89e0209eff001b43fbe9594b" have entirely different histories.
f07eb9fa12
...
befeedcacb
@ -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
|
|
Loading…
Reference in New Issue
Block a user