Skip to content
This repository has been archived by the owner on Feb 14, 2020. It is now read-only.

DB2 Docker Container and IBM Data Studio Installation Steps

David edited this page Sep 26, 2017 · 1 revision

# Install Docker for Windows 10

  1. Download Install Packages You can get it from Get Docker For Windows [Stable]. It typically downloads to your Downloads folder, or you can run it from the recent downloads bar at the bottom of your web browser.
    https://docs.docker.com/docker-for-windows/install/
  2. Double-click Docker for Windows Installer.exe to run the installer. Follow the install wizard to accept the license, authorize the installer, and proceed with the install. You will be asked to authorize Docker.app with your system password during the install process. Privileged access is needed to install networking components, links to the Docker apps, and manage the Hyper-V VMs.
  3. Restart computer
  4. Enable Hyper-V Feature
  5. Setup completed.
  6. Open Command Prompt and Type docker

# Install DB2 Express-c With Docker commands

This docker image contained pre-deployed DB2 Express-C with the default DB2 instance, db2inst1.

  1. Switch to Linux Container Right click on the docker icon and click on Switch to Linux Container

  2. Create DB2 Express-c Container

    docker run --name db2 -p 50000:50000 -e DB2INST1_PASSWORD=P@ssword1! -e LICENSE=accept -d ibmcom/db2express-c db2start

    • -p 50000:50000 exposes port 50000 to allow connections from the remote client.
    • By specifying -e DB2INST1_PASSWORD=db2inst1-pwd parameter, you set a password of your choice for the db2inst1 user for the default DB2 instance.
    • By specifying -e LICENSE=accept parameter, you are accepting this License to use the software contained in this image.
  3. Start DB2 and create sample DB Please switch to the default db2 instance user db2inst1 to start DB2 instance and create a sample database

    docker exec -i -t db2 /bin/bash

    su - db2inst1

    db2start

    creating a database dolsec14

    Note: You can create another database using db2 create db command

# Install IBM Data Studio

1. The IBM Data Studio can get it from https://www.ibm.com/developerworks/downloads/im/data/
2. Click on the Download button
3. Choose Data Studio client option
4. Click Continue
5. Enter IBM ID and password
6. Select the Download using http tab
7. Download IBM Data Studio client Install for Windows
8. Once Download completes - Click launchpad.exe
9. Select Administrative Installation or Update
10. Next
11. Accept the terms in the license agreement
12. Next
13. Follow the install wizard and install packages
14. Restart Installation Manager
15. Install
17. Install Packages - Check IBM Data Studio Client - Version ####
18. Next
19. Follow the install wizard
Accept the terms in the license agreement
Install packages
20. Finish
21. Default Admin for DB2 Docker Container is db2inst1