Sign inSign up

kchlebo/nextcloud-container-nfs-fix-apache

By kchlebo

•Updated over 5 years ago

Image
0

1.0K

kchlebo/nextcloud-container-nfs-fix-apache repository overview

Using nextcloud in containers with NFS as backend storage for /var/www/html (with proper anonuid=82 and anongid=0 to match www-data:root ownership), the rsync process complains:

rsync: chown "/var/www/html/whatever" failed: Operation not permitted (1)

Using the NFS flags already mentioned ensures the ownership so there is no need to change it (and if you want to do it, it fails).

I guess having an environment variable that is used by the entrypoint.sh script can be good enough (?)

See https://github.com/nextcloud/docker/issues/1344⁠

Meanwhile, I keep my own entrypoint.sh fork.

Also, a few manual tweaks are needed:

The image is already available at https://quay.io/repository/eminguez/nextcloud-container-fix-nfs⁠

podman pull quay.io/eminguez/nextcloud-container-fix-nfs

Tag summary

Content type

Image

Digest

Size

181.6 MB

Last updated

over 5 years ago

docker pull kchlebo/nextcloud-container-nfs-fix-apache