Skip to content
Snippets Groups Projects
Unverified Commit c83d4578 authored by Alexandra Branco's avatar Alexandra Branco Committed by GitHub
Browse files

Added information about permissions errors (migrating to alpine) (#2289)

* Added information about permissions errors when migrating docker images to alpine.

* Updated README.md documentation after review.
parent 38994cbb
No related branches found
No related tags found
No related merge requests found
...@@ -620,6 +620,16 @@ You're already using Nextcloud and want to switch to docker? Great! Here are som ...@@ -620,6 +620,16 @@ 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 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
docker exec container-name chown -R www-data:root /var/www/html
```
After changing the permissions, restart the container and the permission errors should disappear.
# Help (Questions / Issues) # Help (Questions / Issues)
**If you have any questions or problems while using the image, please ask for assistance on the Help Forum first (https://help.nextcloud.com)**. **If you have any questions or problems while using the image, please ask for assistance on the Help Forum first (https://help.nextcloud.com)**.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment