0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2025-07-31 10:38:05 +02:00

Compare commits

..

1 commit

Author SHA1 Message Date
Alexandra Branco
b058a9dccd
Merge b73da87c0b into f6d767efb1 2024-09-22 11:17:32 +02:00

View file

@ -614,13 +614,11 @@ You're already using Nextcloud and want to switch to docker? Great! Here are som
docker-compose exec app chown -R www-data:www-data /var/www/html/custom_apps docker-compose exec app chown -R www-data:www-data /var/www/html/custom_apps
``` ```
## Migrating from a non-Alpine image to an Alpine image If you already use Nextcloud with Docker but want to upgrade to Alpine Docker Images, initially you may experience permissions errors because in Alpine Images the user with permissions for the `/var/www` folder are different.
So, you must change the permissions of the `/var/www` folder to be compatible with Alpine:
If you already use one of our non-Alpine images, but want to switch to an Alpine-based image, you may experience permissions problems with your existing volumes. This is because the Alpine images uses a different user ID for `www-data`.
So, you must change the ownership of the `/var/www/html` (or `$NEXTCLOUD_DATA_DIR`) folder to be compatible with Alpine:
```console ```console
docker exec container-name chown -R www-data:root /var/www/html docker exec container-name chown -R www-data:root /var/www
``` ```
After changing the permissions, restart the container and the permission errors should disappear. After changing the permissions, restart the container and the permission errors should disappear.