You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I have been testing the user setting in docker compose and when binding the mount to a local folder, mariadb crashes on startup with missing permissions after setting the folder permissions to 999:999. I am trying to run mariadb as 1599:1600 together with an array of other servers that are running as 1600:1600, 1601:1600, ... which is working, if the container is executed without a supplied user, shut down and the directory permissions are corrected recursively to 1599:1600 - this will skip part of the entrypoint on the next launch, as all the files are already created and THEN its possible to change the user.
So I have read literally hundreds ob messages and forum posts about this and I just can't understand why its doing this. Never had this issue with mysql. But maybe thats also due to the persistent volume/folder.
How can this be fixed in the project? As it isn't really viable to create a Dockerfile just for this and put a bandaid on it.
It states: Can I run the MariaDB container as an arbitrary user? Yes. [...]
So this should be fixed so that the image may just take environment variables or get the current user id and sets the id of the mysql user itself - this would make this compose file way better. Maybe take a look at the one from mysql...
Greetings :)
The text was updated successfully, but these errors were encountered:
Hi, I have been testing the user setting in docker compose and when binding the mount to a local folder, mariadb crashes on startup with missing permissions after setting the folder permissions to 999:999. I am trying to run mariadb as 1599:1600 together with an array of other servers that are running as 1600:1600, 1601:1600, ... which is working, if the container is executed without a supplied user, shut down and the directory permissions are corrected recursively to 1599:1600 - this will skip part of the entrypoint on the next launch, as all the files are already created and THEN its possible to change the user.
So I have read literally hundreds ob messages and forum posts about this and I just can't understand why its doing this. Never had this issue with mysql. But maybe thats also due to the persistent volume/folder.
How can this be fixed in the project? As it isn't really viable to create a Dockerfile just for this and put a bandaid on it.
Going by the FAQ this is already supported:
https://mariadb.com/kb/en/docker-official-image-frequently-asked-questions/#can-i-run-the-mariadb-container-as-an-arbitrary-user
It states: Can I run the MariaDB container as an arbitrary user? Yes. [...]
So this should be fixed so that the image may just take environment variables or get the current user id and sets the id of the mysql user itself - this would make this compose file way better. Maybe take a look at the one from mysql...
Greetings :)
The text was updated successfully, but these errors were encountered: