Installing IBM Db2 Graph on macOS and Windows systems

You can install the Db2 Graph container on macOS or Windows systems running Docker.

Before you begin

Attention: With the release of Db2 11.5.9, Db2 Graph is discontinued. You can still run Db2 Graph as a standalone application with Db2 11.5.6 through 11.5.8.

Procedure

  1. Run the following command:
    docker run -it --hostname=<hostname_from_host_machine> -v <location>:/db2graph --name=db2graph -p 8182:8182 -p 3000:3000 -e LICENSE=view icr.io/obs/hdm/db2graph:latest-amd64
    where
    • hostname_from_host_machine is the hostname of the system on which you are executing the command. The hostname value is used when generating the OpenSSL certificate on the first run of the container.
    • location is set to a location on the host machine where you want Db2 Graph files to be stored.

    After viewing the license, press Ctrl+P Ctrl+Q to exit and leave Db2 Graph running in the container.

    During installation, take note of the password that is presented for the graph_admin and graph_user accounts. You need the password to log in to Db2 Graph.

  2. Optional: Change the randomly generated default password for either graph_admin or graph_user:
    1. Execute the following command:
      docker exec -it db2graph manage user
    2. Select the graph_admin or graph_user account and enter a password.
    3. Repeat the process to change the password for the other account.
    4. Restart the container by running the following command:
      docker exec -it db2graph manage restart

What to do next

By default, the Db2 Graph user interface is available at :
https://<hostname>:3000
where hostname is the hostname of the server running Docker.
The Db2 Graph server is available at:
wss://<hostname>:8182

If you selected different values for the ports when issuing the docker run command, you must update the URLs to reflect your selected port numbers.