I have built a Docker Ubuntu image with Torch installed, when running the container in interactive mode I'm able to execute a few commands as
For example, if I run
/usr/bin/env th, I can see the Torch console but when I run that as
sudo -u www-data bash -c '/usr/bin/env th', I see following error:
/usr/bin/env: th: Permission denied
And that is the error I get in my Apache error log as well. I have also tried changing ownership of
www-data:www-data but still no luck.