Install drawDB Inside Docker Container on Linux

Install drawDB Inside Docker Container on Linux

The drawDB is a web-based application designed for creating and editing Database Entity Relationship (DBER) diagrams in the browser.

This tutorial explains how to install drawDB inside a Docker container on 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 drawDB

  • Host network

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

docker run -d --name=drawdb --restart=always --network=host \
    ghcr.io/drawdb-io/drawdb
  • User-defined bridge network

User-defined bridge network can be used for listening on different port. By default, drawDB service is listening on port 80. It can be changed with -p option.

docker network create app-net
docker run -d --name=drawdb --restart=always --network=app-net \
    -p 8080:80 \
    ghcr.io/drawdb-io/drawdb

Testing drawDB

To access a web application, navigate to http://<IP_ADDRESS>, replacing <IP_ADDRESS> with the system's IP address.

drawDB Inside Docker Container on Linux

Uninstall drawDB

To completely remove drawDB, remove its container:

docker rm --force drawdb

Remove drawDB image:

docker rmi ghcr.io/drawdb-io/drawdb

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.