couchbase / docker

Dockerfiles and configuration scripts for the Docker Hub Official Couchbase images
143 stars 154 forks source link

CBD-5850: Improve warnings when failing to chown files/dirs at startup #208

Closed udkyo closed 7 months ago

udkyo commented 7 months ago

Currently we attempt to chown the contents of /opt/couchbase/var without intercepting issues, which can result in chown failure messages appearing as-is on mounted volumes where ownership is not directly modifiable:

Starting Couchbase Server -- Web UI available at http://:8091 and logs available in /opt/couchbase/var/lib/couchbase/logs chown: changing ownership of 'var/lib/couchbase': Operation not permitted

This change aims to intercept such failures and provide a more informative warning, and also fixes some issues with the dockerhub screenshot generator.