Public | Automated Build

Last pushed: 2 days ago
Short Description
Docker for hosting Virtuoso.
Full Description

Virtuoso docker

Docker for hosting Virtuoso.

The Virtuoso is built from a specific commit SHA in

The Docker image tags include the Virtuoso version installed in the container. The following versions are currently available:

  • 1.2.1-virtuoso7.2.4 (or virtuoso7.2.4 for latest)
  • 1.2.1-virtuoso7.2.2 (or virtuoso7.2.2 for latest)
  • 1.2.1-virtuoso7.2.1 (or virtuoso7.2.1 for latest)
  • 1.2.1-virtuoso7.2.0 (or virtuoso7.2.0 for latest)

Running your Virtuoso

docker run --name my-virtuoso \
    -p 8890:8890 -p 1111:1111 \
    -e DBA_PASSWORD=myDbaPassword \
    -e SPARQL_UPDATE=true \
    -v /my/path/to/the/virtuoso/db:/data \
    -d tenforce/virtuoso

The Virtuoso database folder is mounted in /data.

The Docker image exposes port 8890 and 1111.

Docker compose

The image can also be configured and used via docker-compose.

  image: tenforce/virtuoso:1.2.0-virtuoso7.2.2
    SPARQL_UPDATE: "true"
    - ./data/virtuoso:/data
    - "8890:8890"


dba password

The dba password can be set at container start up via the DBA_PASSWORD environment variable. If not set, the default dba password will be used.

SPARQL update permission

The SPARQL_UPDATE permission on the SPARQL endpoint can be granted by setting the SPARQL_UPDATE environment variable to true.

.ini configuration

All properties defined in virtuoso.ini can be configured via the environment variables. The environment variable should be prefixed with VIRT_ and have a format like VIRT_$SECTION_$KEY. $SECTION and $KEY are case sensitive. They should be CamelCased as in virtuoso.ini. E.g. property ErrorLogFile in the Database section should be configured as VIRT_Database_ErrorLogFile=error.log.

Dumping your Virtuoso data as quads

Enter the Virtuoso docker, open ISQL and execute the dump_nquads procedure. The dump will be available in /my/path/to/the/virtuoso/db/dumps.

docker exec -it my-virtuoso bash
isql-v -U dba -P $DBA_PASSWORD
SQL> dump_nquads ('dumps', 1, 10000000, 1);

For more information, see

Loading quads in Virtuoso


Make the quad .nq files available in /my/path/to/the/virtuoso/db/dumps. The quad files might be compressed. Enter the Virtuoso docker, open ISQL, register and run the load.

docker exec -it my-virtuoso bash
isql-v -U dba -P $DBA_PASSWORD
SQL> ld_dir('dumps', '*.nq', '');
SQL> rdf_loader_run();

Validate the ll_state of the load. If ll_state is 2, the load completed.

select * from DB.DBA.load_list;

For more information, see


By default, any data that is put in the toLoad directory in the Virtuoso database folder (/my/path/to/the/virtuoso/db/toLoad) is automatically loaded into Virtuoso on the first startup of the Docker container. The default graph is set by the DEFAULT_GRAPH environment variable, which defaults to http://localhost:8890/DAV.

Docker Pull Command
Source Repository

Comments (4)
2 months ago

Hey Helbert,

For bugs please create on issue on our github repository. Wrt the SPARQL_UPDATE variable, setting it will only work when creating the container. For an existing database you have to update the permissions of the SPARQL user via the conductor (yourhost:8890/conductor).

2 months ago

I have a problem with the SPARQL_UPDATE=true. I have set the option to false -e SPARQL_UPDATE=false but still, I am capable of deleting triples using the sparql endpoint. I would like to restrict this (I want my sparql endpoint to be read only). Can you please tell me what am I doing wrong? or where can i find more information regarding this topic.
Best regards,


a year ago

Right, I fixed the issue on the Mac by leaving out the use of a symbolically linked /data volume. Now my data is still there after a restart. I did this by creating a custom image using a Dockerfile like this:

FROM tenforce/virtuoso
VOLUME /var/lib/virtuoso/db
WORKDIR /var/lib/virtuoso/db

a year ago

I run Virtuoso on Docker on a Mac. Problem that I am running into is that each time I restart the container the database is empty, so each time I need to load my triples again using isql. What can I do about that? Thanks, René