Nick, thanks for your time, so I added this to my run command: -e GUACAMOLE_HOME="/opt/guacamole"
Then created a lib dir in that path and copied the jar to that dir: [root@lnb-rdp lib]# pwd /opt/guacamole/lib [root@lnb-rdp lib]# ls mariadb-java-client-3.5.6.jar restarted the container but did not work… btw, you are of course correct, I can use mysql driver and that does seem to work. So, this is not strictly needed…but it is in the docs so I am wondering why it does not work. Anyway, thanks for your input, if you want me to try anything, I am more than happy to help Tony From: Nick Couchman <[email protected]> Sent: Tuesday, October 14, 2025 7:28 AM To: [email protected] Subject: Re: [External] how do i include org.mariadb.jdbc.Driver in the guacamole container On Mon, Oct 13, 2025 at 10:19 AM Tony Guadagno <[email protected]<mailto:[email protected]>> wrote: Hi, I am new to guacamole and docker so sorry if this is an easy one…but I am trying to use guacd/guacamole official docker containers with a native mariadb install. I am starting the guacamole instance this way: docker run --network=guac-network --name lnb-guacamole -e MYSQL_HOSTNAME="172.18.0.1" -e MYSQL_DATABASE="guacamole_db" -e MYSQL_USERNAME="guacamole_user" -e MYSQL_SSL_MODE="disabled" -e MYSQL_SERVER_TIMEZONE="America/New_York" -e LOG_LEVEL="debug" -e MYSQL_DRIVER="mariadb" -e MYSQL_PASSWORD="pw" -e GUACD_HOSTNAME="lnb-guacd" -d -p 8080:8080 guacamole/guacamole I thought I read that guacamole natively supports Mariadb but I guacamole is throwing errors and I see this in the logs: Caused by: java.lang.ClassNotFoundException: org.mariadb.jdbc.Driver at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:445) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:593) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526) so it looks like the jdbc driver is not included in the container??? How do I include the mariadb jdbc driver in the container? It looks like we only download the MySQL driver at this point, so it looks like you'll either have to use the MySQL JDBC driver (which should be compatible with MariaDB), or you'll need to create a template GUACAMOLE_HOME directory and drop the MySQL driver into the "lib" directory of your template. I _think_ the following will work, but have not tried it out, yet, so might need some tweaking: * On your host system, create the /etc/guacamole directory, and create a "lib" folder in that directory. * Drop the MariaDB JDBC driver into the /etc/guacamole/lib directory. * At an option for your guacamole container to map /etc/guacamole from the host to /etc/guacamole in the container. That _should_ be it - the guacamole container should use /etc/guacamole as the template and that JDBC driver should be copied as part of that, and should start up correctly without that error. -Nick ________________________________ This email has been scanned for spam and viruses by Proofpoint Essentials. Click here<https://us1.proofpointessentials.com/app/report_spam.php?mod_id=11&mod_option=logitem&report=1&type=easyspam&k=k1&payload=53616c7465645f5f1551a5ec275330d532fe148a64492ec58d88f9685413cb551c765309f7c0bce0a561e27c17a9dd8e31710d7a59f80a07bac5a863a23b2f1cd07f9d48bce68b037b1254a4c2955c917b8fceec3d582cccde8ea9fbffe5661475e3754ae8d88670c54fea5764389f39061f80449aca027a15aa41ba0467afd00704c9788703878f402884ba55d2e19ced645d93f716f82346b26a371ded355d> to report this email as spam.
