Install OrientDB Inside Docker Container in Linux

Install OrientDB Inside Docker Container in Linux

OrientDB is a NoSQL and multimodel database. It supports graph, document, key/value, and object models. OrientDB is an open-source project available under the Apache License 2.0.

This tutorial explains how to install OrientDB inside a Docker container in the Linux. Commands have been tested on Ubuntu.

Prepare environment

Make sure you have installed Docker in your system. If you are using Ubuntu, installation instructions can be found in the post.

Install OrientDB

  • Host network

Run the following command to create a container for OrientDB that uses host network:

docker run -d --name=orientdb --restart=always --network=host \
    -v /opt/orientdb/data:/orientdb/databases \
    -v /opt/orientdb/backup:/orientdb/backup \
  • User-defined bridge network

User-defined bridge network can be used for listening on different port. By default, OrientDB service is listening for HTTP connections on port 2480 and listening for binary connections on port 2424. Both ports can be changed with -p option.

docker network create app-net
docker run -d --name=orientdb --restart=always --network=app-net \
    -p 8080:2480 -p 8081:2424 \
    -v /opt/orientdb/data:/orientdb/databases \
    -v /opt/orientdb/backup:/orientdb/backup \

Note: don't forget to change root password.

Testing OrientDB

OrientDB provides a web interface. Open a web browser and go to http://<IP_ADDRESS>:2480, where <IP_ADDRESS> is the IP address of the system. Before trying to log in, create a new database. Provide database name, root username and password. Once database created, you will be automatically logged in and redirected to administrative dashboard.

Install OrientDB Inside Docker Container in Linux

Uninstall OrientDB

To completely remove OrientDB, remove its container and associated volume:

docker rm --force --volumes orientdb

Remove OrientDB image:

docker rmi orientdb

You can also remove OrientDB data:

sudo rm -rf /opt/orientdb

If a user-defined bridge network was created, you can delete it as follows:

docker network rm app-net

Leave a Comment

Cancel reply

Your email address will not be published.