Installing the Docker engine

If you wish to deploy Db2® Warehouse on a system that does not have an internet connection, you must first install the Docker Engine on that system.

Before you begin

  • In addition to access to the system on which Db2 Warehouse is to be deployed, you will require access to a system that is connected to the internet so that you can download the necessary packages.
  • This procedure describes how to install Docker Version 18.09.03 on Red Hat Enterprise Linux 7.5 (RHEL 7.5). If you are using a different Docker version or a different operating system, you will need to adjust the package names accordingly. Supported Docker versions and operating systems are described in IBM Db2 Warehouse prerequisites.

Procedure

  1. On a system with an internet connection, run the following commands to download the necessary packages1:
    # Main docker-ce package and its dependents 
    wget https://download.docker.com/linux/centos/7/x86_64/stable/Packages/docker-ce-18.09.03.el7.x86_64.rpm 
    wget https://download.docker.com/linux/centos/7/x86_64/stable/Packages/docker-ce-cli-18.09.03.el7.x86_64.rpm 
    wget https://download.docker.com/linux/centos/7/x86_64/stable/Packages/containerd.io-1.2.03.el7.x86_64.rpm
    
    # docker-ce-cli dependent
    wget http://mirror.centos.org/centos/7/os/x86_64/Packages/libtool-ltdl-2.4.2-22.el7_3.x86_64.rpm 
     
    # docker-ce dependents 
    wget http://mirror.centos.org/centos/7/os/x86_64/Packages/audit-2.8.4-4.el7.x86_64.rpm 
    wget http://mirror.centos.org/centos/7/os/x86_64/Packages/audit-libs-2.8.4-4.el7.x86_64.rpm 
    wget http://mirror.centos.org/centos/7/os/x86_64/Packages/libsepol-2.5-10.el7.x86_64.rpm 
    wget http://mirror.centos.org/centos/7/os/x86_64/Packages/libselinux-2.5-14.1.el7.x86_64.rpm 
    wget http://mirror.centos.org/centos/7/os/x86_64/Packages/libselinux-python-2.514.1.el7.x86_64.rpm 
    wget http://mirror.centos.org/centos/7/os/x86_64/Packages/libselinux-utils-2.5-14.1.el7.x86_64.rpm 
    wget http://mirror.centos.org/centos/7/os/x86_64/Packages/libsemanage-2.5-14.el7.x86_64.rpm 
    wget http://mirror.centos.org/centos/7/os/x86_64/Packages/policycoreutils-2.5-29.el7.x86_64.rpm 
    wget http://mirror.centos.org/centos/7/os/x86_64/Packages/audit-libs-python-2.8.4-4.el7.x86_64.rpm 
    wget http://mirror.centos.org/centos/7/os/x86_64/Packages/checkpolicy-2.5-8.el7.x86_64.rpm 
    wget http://mirror.centos.org/centos/7/os/x86_64/Packages/libcgroup-0.41-20.el7.x86_64.rpm 
    wget http://mirror.centos.org/centos/7/os/x86_64/Packages/libseccomp-2.3.1-3.el7.x86_64.rpm 
    wget http://mirror.centos.org/centos/7/os/x86_64/Packages/libsemanage-python-2.514.el7.x86_64.rpm 
    wget http://mirror.centos.org/centos/7/os/x86_64/Packages/policycoreutils-python-2.529.el7.x86_64.rpm 
    wget http://mirror.centos.org/centos/7/os/x86_64/Packages/python-IPy-0.75-6.el7.noarch.rpm 
    wget http://mirror.centos.org/centos/7/os/x86_64/Packages/setools-libs-3.3.8-4.el7.x86_64.rpm 
    wget http://mirror.centos.org/centos/7/extras/x86_64/Packages/container-selinux-2.681.el7.noarch.rpm
  2. Transfer the packages to the system to which Db2 Warehouse is to be deployed (the target system).
  3. On the target system, run the following commands in the order shown to install or upgrade the packages:
    rpm -ivh containerd.io-1.2.0-3.el7.x86_64.rpm
    rpm -ivh libtool-ltdl-2.4.2-22.el7_3.x86_64.rpm
    rpm -ivh docker-ce-cli-18.09.0-3.el7.x86_64.rpm
    rpm -Uvh audit-2.8.4-4.el7.x86_64.rpm audit-libs-2.8.4-4.el7.x86_64.rpm
    rpm -Uvh libsepol-2.5-10.el7.x86_64.rpm
    rpm -Uvh libselinux-2.5-14.1.el7.x86_64.rpm libselinux-python-2.5-14.1.el7.x86_64.rpm libselinux-utils-2.5-14.1.el7.x86_64.rpm
    rpm -Uvh libsemanage-2.5-14.el7.x86_64.rpm
    rpm -Uvh policycoreutils-2.5-29.el7.x86_64.rpm
    rpm -ivh libsemanage-python-2.5-14.el7.x86_64.rpm
    rpm -ivh audit-libs-python-2.8.4-4.el7.x86_64.rpm
    rpm -ivh setools-libs-3.3.8-4.el7.x86_64.rpm
    rpm -ivh python-IPy-0.75-6.el7.noarch.rpm
    rpm -ivh checkpolicy-2.5-8.el7.x86_64.rpm
    rpm -ivh libseccomp-2.3.1-3.el7.x86_64.rpm
    rpm -ivh libcgroup-0.41-20.el7.x86_64.rpm
    rpm -ivh policycoreutils-python-2.5-29.el7.x86_64.rpm
    rpm -ivh container-selinux-2.68-1.el7.noarch.rpm
    rpm -ivh docker-ce-18.09.0-3.el7.x86_64.rpm
  4. If Docker is not already configured to use the overlay2 storage driver, configure it as described in Use the OverlayFS storage driver.
  5. On the target system, issue the following commands to create a new directory and open a new file for the Docker storage configuration settings:
    mkdir -p /etc/docker/
    vi /etc/docker/daemon.json

    Insert the following text, then save the file:

    {
    "storage-driver": "devicemapper",
    "storage-opts": [ "dm.basesize=20G" ]
    }
  6. On the target system, issue the following command to start the Docker engine:
    systemctl start docker

What to do next

Deploy Db2 Warehouse as described in Deploying IBM Db2 Warehouse.
1 This procedure describes how to install Docker Version 18.09.03 on Red Hat Enterprise Linux 7.5 (RHEL 7.5). If you are using a different Docker version or a different operating system, you will need to adjust the package names accordingly. Supported Docker versions and operating systems are described in IBM Db2 Warehouse prerequisites.