bitnami / containers

Bitnami container images
https://bitnami.com
Other
3.44k stars 4.9k forks source link

[bitnami/clickhouse] Unable to mount clickhouse data directory as volume in docker /bitnami/clickhouse/data #74874

Open zubi-venturenox opened 1 week ago

zubi-venturenox commented 1 week ago

Name and Version

bitnami/clickhouse:24.10.1

What architecture are you using?

amd64

What steps will reproduce the bug?

Unable to mount the CLICKHOUSE_DATA_DIR or CLICKHOUSE_VOLUME_DIR directory as volumes in the docker-compose file. Compose I am using: image

What is the expected behavior?

Volume should be mounted and data should persist

What do you see instead?

When building the image docker shows these logs and exits. Gives Permission denied ["/var/lib/clickhouse/preprocessed_configs"] Complete logs attached Screenshot_20241113_164304

carrodher commented 3 days ago

Bitnami containers are designed to operate as non-root by default. Consequently, any files or directories used by the application should be owned by the root group, as the random user (1001 by default) is a member of this root group. To ensure proper permissions, you'll need to adjust the ownership of your local directory accordingly.

For more comprehensive information about non-root containers and their significance for security, you can explore the following resources:

These references provide valuable insights into the best practices and considerations when working with non-root containers in Bitnami applications.