Docker Community Forums

Share and learn in the Docker community.

Tail command can't recognize file system

I have created a docker image using this Dockerfile: https://github.com/tomitribe/docker-tomee/blob/master/7-jre-1.7.4-plus/Dockerfile
When I try to run “tail -f” on any file, I get this error message:

tail: unrecognized file system type 0x794c7630 for ‘filename.txt’. please report this to bug-coreutils @ gnu . org. reverting to polling

I found a workaround recommending to create the log file on another volume/filesystem, but this seems cumbersome.
This bug report in debian indicated that it was resulting from an outdated version of coreutils and would be fixed by using the latest version: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=810669
I tried adding these lines to my Dockerfile to install an updated version of coreutils:

RUN apt-get update
RUN apt-get install coreutils

but it said there were 0 packages updated.

Does anyone know how to fix this? We use “tail -f” a lot for watching TomEE log files live. It currently only works with polling, which delays everything a few seconds. I want my team to adopt Docker, but this is going to be a big drawback if we can’t tail log files with minimal delay.

I’m aware that we could use “docker attach” to view the STDOUT, but it’s not easy for us to configure our log messages to go there instead of a file.

I’m using Windows 10 as a host, but the same behavior is exhibited on other host platforms (like CentOS 7).

Thanks!

1 Like

Interesting, i’m getting the exact same issue :confused: