The Docker image sets everything under /opt/couchdb to be owned by the couchdb user, leading to the running couchdb process to have unrestricted access to all binaries and files installed in the container.
Expected Behavior
Only the necessary directories under /opt/couchdb should be set to be owned by couchdb, namely /opt/couchdb/data, etc...
Current Behavior
Everything is owned by couchdb. Couchdb has unrestricted access to all files installed.
Possible Solution
Change the chown commands in the Dockerfile and entrypoint to selectively set the correct ownerships.
Steps to Reproduce (for bugs)
Run the image
execute docker exec -ti <your-container-name> bash and have a look inside /opt/couchdb
The Docker image sets everything under /opt/couchdb to be owned by the couchdb user, leading to the running couchdb process to have unrestricted access to all binaries and files installed in the container.
Expected Behavior
Only the necessary directories under /opt/couchdb should be set to be owned by couchdb, namely /opt/couchdb/data, etc...
Current Behavior
Everything is owned by couchdb. Couchdb has unrestricted access to all files installed.
Possible Solution
Change the
chowncommands in the Dockerfile and entrypoint to selectively set the correct ownerships.Steps to Reproduce (for bugs)
Run the image
execute
docker exec -ti <your-container-name> bashand have a look inside /opt/couchdb