Docker Logs F Not Following Output

0216

This is a introduced in CoreOS 561 when the default file system was changed from btrfs to the overlayfs. I found a to basically format the filesystem using btrfs when a host is first started, and that seems to be working for now. Amd radeon 6470m download.

  1. Docker Run No Output
  2. Docker Log Output
DockerNot

Docker Run No Output

This is a similar issue to ' but I'm not sure if it's the same root cause. I'm trying to setup a simple cron docker container, and have been testing a bunch of examples that I can find, including this '. FROM ubuntu:latest # Setup cron and scripts.

# Create the log file to be able to run tail RUN touch /var/log/cron.log # Run the command on container startup CMD cron && tail -f /var/log/cron.log The problem is that this works and the cron jobs run, but nothing appears in the docker logs or output when running docker run. And yes, I have verified that the log file is being written to by running a docker exec command on the container. I then tested changing from ubuntu:latest to ubuntu:trusty, thinking that it might have something to do with Ubuntu 16. This resulted in the following error when starting the container: tail: unrecognized file system type 0x794c7630 for '/var/log/cron.log'. Please report this to bug-coreutils@gnu.org. Reverting to polling After googling that error I found some suggestions.

Docker Log Output

So I tried tweaking my docker file like this: # RUN touch /var/log/cron.log.

This entry was posted on 16.02.2020.