Upgrading Db2 Data Management Console Docker image

Use this procedure to upgrade a Docker image of Db2® Data Management Console from the current version to the latest version.

Before you begin

Ensure to back up your repository database.

Procedure

  1. Stop the current version of Db2 Data Management Console.
    docker stop mydmc;docker rm mydmc
    If you get any errors during the process, remove the mydmc container by force.
    docker rm -f mydmc
  2. If the current version is earlier than v3.1.7, run the following command to change the folder privilege.
    chmod -R g=u <dmc storage dir>
  3. Start the latest version of Db2 Data Management Console.
    docker run -d --name mydmc -p 11081:8443 -e LICENSE=accept -v /mydmc:/mnt \
    -v /etc/localtime:/etc/localtime:ro icr.io/cpopen/db2console/db2console:latest

    where /mydmc is the persistent storage directory location (absolute path) that stores the console configuration and logs. Make sure this directory is the same as the directory that is used for the current version of Db2 Data Management Console.

    Note: If you do not run the command in step 2, before you upgrade the Db2 Data Management Console Docker, the started Docker container might encounter local network errors. The command retries in about 3 minutes, then stops the container. After you run the chmod command in step 2, delete the former stopped Docker container and run the command in step 3.