-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Description
I am trying to run this image on the IBM Containers service, but unfortunately when I map a volume to /var/www/html, it fails to start with the following errors:
WordPress not found in /var/www/html - copying now...
tar: ./wp-content/index.php: Cannot change ownership to uid 33, gid 33: Permission denied
tar: ./wp-content/plugins/akismet/readme.txt: Cannot change ownership to uid 33, gid 33: Permission denied
tar: ./wp-content/plugins/akismet/LICENSE.txt: Cannot change ownership to uid 33, gid 33: Permission denied
tar: ./wp-content/plugins/akismet/index.php: Cannot change ownership to uid 33, gid 33: Permission denied
tar: ./wp-content/plugins/akismet/wrapper.php: Cannot change ownership to uid 33, gid 33: Permission denied
...
After poking around, it looks like there is currently a limitation with the use of NFS-backed volumes which prevents the changing of file owners: https://console.ng.bluemix.net/docs/containers/container_troubleshoot.html#ts_vol_owner
As a workaround, I have wrapped this image with my own dockerfile that
- adds the www-data user to the root group; and
- grants group write access to /var/www/html
Happy to receive feedback on that approach, as well as any other ideas for working around this limitation.
Are there simple changes that could be made to the official image to make it work in this type of environment?
nicooga
Metadata
Metadata
Assignees
Labels
No labels