seregazhuk / php-watcher

Monitor for any changes in your php application and automatically restart it (suitable for async apps).
https://sergeyzhuk.me/2019/10/18/php-watcher/
388 stars 30 forks source link

Dockerized run loses STDERR #40

Closed gorbunov closed 4 years ago

gorbunov commented 4 years ago

When script run within docker container, docker internally catches STDERR from script run as entrypoint, to allow capturing error logs via docker log command, and then copies STDERR to STDOUT. When entryscript is php-watcher, docker unable to capture STDERR, so I unable to see any errors in the console or with docker log command. Running with --arguments 2>&1 helps.