Description
Finally I decided to make this an issue as I spent a few hours figuring out why my container that builds on top of mariadb's image won't start, maybe to help others having the same issue. The problem occurred after 3b2e52a.
It seams that running mariadb using just source
command with mariadb's entrypoint is now deprecated. Doing so silently exits the running container. This broke all our images build on top of mariadb image as we used to start the mariadb from our image running the mariadb's entrypoint like this:
source /usr/local/bin/docker-entrypoint.sh $@
The cause are the following lines in the mariadb's entrypoint:
https://github.com/docker-library/mariadb/blob/ad6b97a27e6c09b81fb8d1e091b276b8ca5fff76/10.1/docker-entrypoint.sh#L328-L331
Workaround to emulate the old behavior:
source /usr/local/bin/docker-entrypoint.sh
_main $@
Suggestion for a fix:
When calling the mariadb's entrypoint using source
command with one or more parameters, either report error or emulate the previous behavior. It may be also useful, when sourcing mariadb's entrypoint to inform user about that situation. Now it looks like there is something wrong because nothing happens when doing so.