Comments - mariadb image not exiting smothly with docker rootless
Content reproduced on this site is the property of its respective owners,
and this content is not reviewed in advance by MariaDB. The views, information and opinions
expressed by this content do not necessarily represent those of MariaDB or any other party.
This is really weird:
docker-entrypoint.sh: line 149: kill: (109) - Permission denied
The 109 is the process of the temporary server started which is in the logs. There hasn't been any change in user. So its effectively the entry-point running a background mysqld process and then not being able to kill the same process.
Evidently the docker root mode doesn't hit this "Permission denied".
Look at upgrading your OS and docker version. Something seems incompatible there though I can't pinpoint what it might be.
thanks Daniel for your Reply!
yeah - i think i once also tried to
and try to kill the process - but get the same permission denied. such *not possible to kill* scenarios can also come from some sort of io-problem: the process is in a *read or write* operation that the kernel can not stop. i had this on my development-laptop long time ago with some very experimental setup..
my os and docker are - i think - up to date:
as already posted - with the 11.4 image it does work.
i am with you - it is really odd.. maybe something to do with *root* creating the volume and therefore the directories and files - and somehow this root is different when rootless is in play...?! for now i try to just use the current lts version
The following might be able to kill, and this more closely maps the user that does it in the entrypoint.
There are uid maps, the only root (or faked root) priv required is the changing of file permissions/ownership.
I'm even looking at making these non-fatal - https://github.com/MariaDB/mariadb-docker/pull/595 - but this would have showed up differently in your logs.
Glad the 11.4 container is fine.