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.
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 withdocker log
command. Running with --arguments 2>&1 helps.