Add jdbc driver to docker

Having the capability to install from docker make it easy to evaluate new version, however often need to evaluate using virtual connection to relational DB.

Is there a way to tell it to load libraries from a specific path similar to how we tell it where the home is?

Here instruction to add libraries

  1. Create a 'lib' directory in STARDOG_HOME
  2. cp your favorite jars in STARDOG HOME
  3. run the following command

docker run -e STARDOG_EXT="/var/opt/stardog/lib" -v ~/stardog-home/:/var/opt/stardog -p 5820:5820 stardog/stardog:latest

You will notice a new parameter -e which allowed you to set an environment variable as documented at

Also note that I also added -p option which publish the port to the public interface which is probably something that everyone need. This may be obvious to long time Docker users but not so much to newbies like me.

1 Like

Thanks a lot Serge. :pray: This is the approach we are currently using too. We are considering some other options to make this easier. Apologies for the delay in response.


This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.