perl script run under apache mod_perl is able to create a file inside the running docker container
Actual behavior
undef error - write_file ‘/srv/www/htdocs/bugzilla/data/assets/14dc9f799a0a806eeb6c22ce8c06029f.css’ - sysopen: Permission denied at /srv/www/htdocs/bugzilla/Bugzilla/Template.pm line 515.
Information
OS X: version 10.11.4 (build: 15E65)
Docker.app: version v1.11.1-beta11
Running diagnostic tests: [ALL OK]
I remember running into this problem before, using docker-machine, where it was related to file permissions not being properly translated to the host.
When I ssh into the guest, I can ‘touch’ new files w/o problem.
The image, when built & run on a linux host, works fine.
Unfortunately the affected image is based on private images (SLES12 base with apache installed using the package manager).
I did however come across a very strange behaviour when debugging this.
via “docker exec -ti container bash” when container is run on OS X host:
$> cat /srv/www/htdocs/foo/.htaccess
No such file or directory
$> su - wwwrun -s /bin/bash -c "cat /srv/www/htdocs/foo/.htaccess”
cat: /srv/www/htdocs/foo/.htaccess: Permission denied
via “docker exec -ti container bash” when container is run on SLES host:
$> cat /srv/www/htdocs/foo/.htaccess
No such file or directory
$> su - wwwrun -s /bin/bash -c "cat /srv/www/htdocs/foo/.htaccess”
cat: /srv/www/htdocs/foo/.htaccess: No such file or directory