docker-alpine icon indicating copy to clipboard operation
docker-alpine copied to clipboard

tail in run.sh fails

Open larsks opened this issue 9 years ago • 1 comments

The run.sh script attempts to tail the lighttpd logs:

# display logs
tail -F /var/log/lighttpd/*log &

But tat the time this script runs, these log files don't exist, so the wildcard expansion fails, so you get:

tail: can't open '/var/log/lighttpd/*log': No such file or directory

If you replace this with:

tail -F /var/log/lighttpd/access.log /var/log/lighttpd/error.log 

It should work as intended.

larsks avatar Dec 06 '15 15:12 larsks

Hello I reproduce this bug on Ubuntu on Docker --> Isn't Alpine problem

The problem is use tail * from docker exec -it docker exec -it 14 bash -f /MyProyect/start.sh

this not work tail -10 /var/log/hadoop/hdfs/hadoop-hdfs-namenode-*.out (but if you exec directly on bash container, works OK)

this work tail -10 /var/log/hadoop/hdfs/hadoop-hdfs-namenode-amb0.mycorp.kom.out

the error is: tail: cannot open /var/log/hadoop/hdfs/hadoop-hdfs-namenode-*.out' for reading: No such file or directory`

albertoRamon avatar Dec 03 '16 18:12 albertoRamon