Adding Dockerized notebooks
Add a Dockerized notebook, enabling the notebook services to run within a Docker container.
Before you begin
- Docker must be installed on a subset of your compute hosts. For a list of supported Docker
versions, see Supported Docker versions.
When the Docker daemon is running on a host, the host is considered a Docker active host.
- You must be a cluster administrator or have the Notebook Management Configure permission.
- You must create the notebook package that contains the scripts and binaries that are required for the notebook to run. See Creating notebook packages.
- A suitable Docker image for the instance group must be available. Note: IBM Spectrum Conductor does not provide Docker images. While you can use default Docker images (such as ubuntu), Docker images must be used at your own risk and must meet the following requirements:
- The Docker image must be compatible with the Docker version that is installed on your hosts to avoid unexpected Docker issues.
- The Docker image must have OpenSSL 1.0.1 or higher installed.
- The Docker image must have the net-tools package.
- If you want to Dockerize a notebook, the Docker image must support the iproute package (that provides the SS utility library). To Dockerize the Zeppelin or Jupyter notebook, the Docker image must also support cURL 7.28.0.
If you provide your own Docker image from a local directory, you must load the Docker image by using the docker load command. Ensure that you load the Docker image to all hosts on which you want the Docker container to run.
You can upload your Docker image as an instance group package. In this case, the Docker image is deployed to Docker hosts when you deploy the instance group, rather than when you start it. You can place the Docker image in a package, which depending on the Docker operation you use, loads or imports the image from a .tar file. Alternatively, you can use a package install script to pull the image from a source. Find Docker images through a Docker registry (for example, the public Docker registry at https://hub.docker.com/).
About this task
You can configure your notebook services to run inside a Docker container, instead of on the host. Running Dockerized notebook services inside a container can simplify the library dependencies for each type of notebook. As a result, you can use Docker's flexibility and portability to run its notebook services on any host, in any environment. For more information on Docker integration and configuration, see Docker integration for Linux.