Skip to content

Commit c83d457

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.
1 parent 38994cb commit c83d457

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,16 @@ You're already using Nextcloud and want to switch to docker? Great! Here are som
620620
docker compose exec app chown -R www-data:www-data /var/www/html/custom_apps
621621
```
622622

623+
## Migrating from a non-Alpine image to an Alpine image
624+
625+
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`.
626+
So, you must change the ownership of the `/var/www/html` (or `$NEXTCLOUD_DATA_DIR`) folder to be compatible with Alpine:
627+
628+
```console
629+
docker exec container-name chown -R www-data:root /var/www/html
630+
```
631+
632+
After changing the permissions, restart the container and the permission errors should disappear.
623633
# Help (Questions / Issues)
624634

625635
**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 commit comments

Comments
 (0)