jwilder / dockerize

Utility to simplify running applications in docker containers
MIT License
5k stars 414 forks source link

Unable to stat error since v0.6.1 #112

Open hrak opened 6 years ago

hrak commented 6 years ago

After merge of #101 dockerize is throwing a 'unable to stat' error when log files do not exist before starting. This used to work up until v0.6.0.

This f.e. happens when you run nginx in a container and in the container /var/log/nginx is just an empty dir waiting for logs to be written there.

A workaround could ofcourse be to touch empty files in the log location during container build, but it is a change in behavior that is not documented.

marpada commented 6 years ago

+1. Touching the log files is not an easy workaround for us as the log folder is mapped to a VOLUME on a base image several levels up.

powerman commented 5 years ago

Already fixed in fork https://github.com/powerman/dockerize