I downloaded this binary for Docker. On my EX4100, I have to use the seccomp workaround stated here.
The LinuxServer.io MariaDB worked for me, using a port other than 3306.
Be sure to pull the Alpine tag: The default is on an Ubuntu base, and the WD NAS doesn’t play at all with it.
docker pull linuxserver/mariadb:alpine
Alternatively Postgres is an excellent choice of database system.
docker pull postgres