Installing Docker and NVIDIA Container Runtime

You can install Docker on Red Hat® Enterprise Linux® or Ubuntu operating systems. You can install NVIDIA Container Runtime on Ubuntu and Red Hat Enterprise Linux operating systems to enable support for GPU devices in the Docker containers.

Docker

To install Docker on Red Hat Enterprise Linux, refer to the Install Docker Engine documentation on the Docker website and use the following instructions:

NVIDIA Container Runtime

To install the NVIDIA Container Runtime on Red Hat Enterprise Linux and Ubuntu, refer to the Installing the NVIDIA Container Toolkit documentation on the NVIDIA website.

Note:

Starting in Maximo® Visual Inspection Edge 8.8, IBM POWER8 is no longer supported.

Starting in Maximo Visual Inspection Edge 8.9, IBM Power® Systems are no longer supported.

Next steps

After you install Docker,
 complete the following steps:

  1. Open the Docker daemon configuration file /etc/docker/daemon.json.
  2. Ensure that locally deployed models run correctly on GPUs by configuring the default runtime.

    The configuration file contains the following NVIDIA runtime:


    
    {
  
     "runtimes" : {

          "nvidia" : {

             "path" : "/usr/bin/nvidia-container-runtime",

             "runtimeArgs" : []

          }

       }
    
}
    
  3. To make NVIDIA runtime the default runtime, add the default-runtime
option to the configuration file.
  4. Enable log file rotation by updating the log-driver and
log-opts options in the configuration file.

    Maximo Visual Inspection Edge
 containers write log messages to the Docker container logs, which can become large in production systems.

    For example, after you make these updates, the daemon configuration file might contain the 
following configuration:

    
    {
   "runtimes" : {

          "nvidia" : {

             "path" : "/usr/bin/nvidia-container-runtime",
    
         "runtimeArgs" : []

          }

       },

       "default-runtime" : "nvidia",

       "log-driver": "json-file",

       "log-opts": {

          "max-size": "10m",

           "max-file": "20"

       }
    
}
    
  5. Save your changes and restart the Docker daemon by 
running the following command:
    sudo systemctl restart docker