At 11.0, ArcGIS Notebook Server with Windows containers and Mirantis Container Runtime is available as a beta release on Windows.
Note:
While in beta, these features may have known performance or quality issues and will not be supported by Esri Technical Support.
ArcGIS Notebook Server and Windows containers
Similar to other ArcGIS Notebook Server deployments, ArcGIS Notebook Server with Windows containers is installed on a server operating system and is configured and federated with an ArcGIS Enterprise portal. Additionally, a web adaptor can be deployed in front of the ArcGIS Notebook Server software.
ArcGIS Notebook Server uses virtualized operating systems known as containers to isolate notebook authors' environments. As a result, the containers allow each author to use a subset of server resources without their work or resource usage interfering with others.
These containers are allocated and maintained by Mirantis Container Runtime, formerly Docker Engine Enterprise, a third-party software component. Before installing ArcGIS Notebook Server, you must install Mirantis Container Runtime version 20.10 or later. Once ArcGIS Notebook Server is installed, it must be configured to work with Mirantis Container Runtime.
ArcGIS Notebook Server allocates one container per runtime to each notebook author on the site, and only they can work in the container. The computing resources the authors use when running notebooks will not affect other authors' containers.
When a portal member with corresponding privileges opens their first notebook, a container is launched on the ArcGIS Notebook Server site. This session between the notebook and the container will be ongoing through the duration of the notebook.
ArcGIS Notebook Server can join multiple machines together in a site. Machines in a multiple-machine configuration must be configured to be identical, and each machine can run ArcGIS Notebooks.
Notebook runtimes and Windows container images
Esri provides a single Windows container image for ArcGIS Notebook Server. This container image includes the Standard and Advanced notebook runtimes, which make Python resources available in ArcGIS Notebooks. See Available Python libraries for more information on the libraries available in each runtime.
The two ArcGIS Notebook Server runtimes, Standard and Advanced, are available in notebooks as part of the container image. Depending on your license and user privilege, either the Standard or both the Standard and Advanced runtimes will be available for use.
The Windows containers in an ArcGIS Notebook Server site support two modes of runtime isolation, process and Hyper-V. See the Microsoft documentation on Isolation Modes for more information on the modes. If you configure your site to use Hyper-V isolation, the Hyper-V role must be installed on the machine.
Note:
There are limitations with respect to the number of containers that can be run when using Windows containers with Hyper-V. See this Microsoft FAQ for more information.
When a container is launched, the Windows container image provided by Esri is applied to the container. The runtime will depend on the license configured for ArcGIS Notebook Server and the notebook author's privilege.
Note:
At 11.0, there is a known limitation that may result in WinError 1455 when importing the torch library or Python libraries that have torch as a dependency.
Set up prerequisite software
Before installing ArcGIS Notebook Server, you must install and configure the following prerequisite software.
System requirements
The following system requirements must be met to install ArcGIS Notebook Server with Windows containers:
- Windows Server 2022 is the only operating system that is supported for ArcGIS Notebook Server with Windows containers.
- ArcGIS Notebook Server with Windows containers requires Mirantis Container Runtime version 20.10 or later.
- Hyper-V is optional, depending on the runtime isolation mode chosen for your ArcGIS Notebook Server site.
- Review the ArcGIS Notebook Server system requirements.
Enable Hyper-V (optional)
Hyper-V is only required if you intend to run Windows containers in the Hyper-V isolation mode.
To enable Hyper-V, refer to Install the Hyper-V role on Windows Server in the Microsoft documentation.
Install Mirantis Container Runtime
- Uninstall any previous version of Docker installed on your machine.
- Do not enable the Containers feature on your local server prior to installing Mirantis Container Runtime. If this feature is already enabled, disable it on your server machine. See Install or Uninstall Roles, Role Services, or Features in the Microsoft documentation for more information.
- Follow the steps provided in Install Mirantis Container Runtime on Windows Server in the Mirantis documentation.
- Verify that Mirantis Container Runtime is installed and has been started by running the following command:
docker run hello-world:nanoserver
- Once completed, follow the steps below to configure Mirantis Container Runtime.
Configure Mirantis Container Runtime
- Enable port 2375 to enable the use of the Docker remote API. This port will only be used internally by ArcGIS Notebook Server and should be protected from external use. To enable the port, open a command prompt as an administrator and run the following command:
sc config docker binpath= "\"C:\Program Files\docker\dockerd.exe\" --run-service -H tcp://localhost:2375 -H npipe://
- Open a PowerShell window as an administrator and run the following command:
Restart-Service docker
- Once the Docker component is installed, restart your machine.
Note:
Each time you install or upgrade the Docker component, you must restart the machine.
Install ArcGIS Notebook Server
Follow the steps in the Install ArcGIS Notebook Server help topic to install ArcGIS Notebook Server using either the installation wizard or the command line.
Configure ArcGIS Notebook Server after installation
When your ArcGIS Notebook Server installation is complete, run the postinstallation utility to install the Windows container image downloaded from My Esri. Perform the following steps for each machine on which you have installed ArcGIS Notebook Server.
- Open the command prompt window as an administrator.
- Change directories to the ArcGIS Notebook Server tools folder. By default, the path is C:\Program Files\ArcGIS\NotebookServer\tools\PostInstallUtility.
- Determine whether Mirantis Container Runtime is active on your machine by running the following command:
PostInstallUtility.bat -d
- If Mirantis Container Runtime is not installed, install and configure it using the instructions provided above.
- Run the following command:
> PostInstallUtility.bat -l <path of .tar.gz Docker image>
Create an ArcGIS Notebook Server site
After you have installed ArcGIS Notebook Server and have configured the Windows container image using the postinstallation utility, create a server site by following the instructions in the Create an ArcGIS Notebook Server site topic.
Note:
If you intend to deploy ArcGIS Notebook Server on multiple machines, read the Considerations for the Notebook Server directories and configuration store section below before creating a site.
Considerations for the Notebook Server directories and configuration store
If you plan to deploy ArcGIS Notebook Server on multiple machines, the content directory and configuration store must use a shared directory referenced by a Universal Naming Convention (UNC) path. The workspace directory must always use a UNC path configured as a mapped network, with a matching drive letter on all machines participating in the site, and use it as the workspace directory.
See the Set up a mapped network drive for the workspace directory section below for instructions on how to configure a mapped network drive.
Enable a Windows container feature for Notebook Server
After successfully creating your site, follow the steps below to opt-in to use ArcGIS Notebook Server with Windows containers. Once your ArcGIS Notebook Server site has been created, sign in to the Administrative API to ensure the site is configured to use Windows containers.
- Sign in to the ArcGIS Notebook Server Administrative directory as an administrator.
- Click System > Properties.
- Click Update properties.
- Update the useWindowsContainers property to be set to true.
- Click Update properties to save the changes.
- Once the Notebook Server restarts and the administrative directory is accessible, click Notebook > Runtimes > Restore Factory Runtimes.
https://notebook.domain.com:11443/arcgis/admin/notebooks/runtimes/restore
- Click Restore Factory Runtimes to update the Notebook Server standard and advanced runtimes to use the Windows container images.
Install and configure ArcGIS Web Adaptor with ArcGIS Notebook Server
Once your ArcGIS Notebook Server site has been created, you must install ArcGIS Web Adaptor and register it with ArcGIS Notebook Server. See Install and configure ArcGIS Web Adaptor with ArcGIS Notebook Server for more information.
Install and configure ArcGIS Notebook Server samples data
ArcGIS Notebook Server samples data is required for Esri curated sample notebooks that are included with ArcGIS Notebook Server. See Install and configure ArcGIS Notebook Server samples data for more information.
Configure Notebook Server with ArcGIS Enterprise Portal
After you have installed ArcGIS Notebook Server, configured it with Mirantis Container Runtime, created a server site, and registered the site with a web adaptor, you can configure the site with an ArcGIS Enterprise Portal. See Configure ArcGIS Notebook Server with the portal for more information.
Join additional machines to the ArcGIS Notebook Server site
ArcGIS Notebook Server supports multiple-machine sites. In a multiple-machine site, each machine must have the same configuration, with the same OS, identical Mirantis Container Runtime setup, and mapped network drive with the same drive letter for the workspace directory. See the Install and configure a multiple-machine site section of the Join additional machines to an ArcGIS Notebook Server site topic for more information.
Set up a mapped network drive for the workspace directory
This is an optional process that is only necessary if you plan to set up a multi-machine Notebook Server site.
- Create a UNC share for the ArcGIS Notebook Server workspace directory on a separate machine that is accessible to the Notebook Server.
Note:
This directory must have read-write access to the ArcGIS Notebook Server Windows run-as account. It is recommended that you create a UNC share for the ArcGIS Notebook Server workspace directory on a machine separate from the machine participating in the ArcGIS Notebook Server site. There is a known issue where SMB shares created on the same machine as the Notebook Server will disconnect when restarting the machine. - On the Notebook Server machine, open a PowerShell window as an administrator.
- Save your ArcGIS Notebook Server user account password as a secured string for later using the following command:
$password = ConvertTo-SecureString '<password>' -AsPlainText –Force
- Add credential support to the PowerShell functions:
$credential = New-Object System.Management.Automation.PSCredential ('<domain\username>', $password)
- Mount the folder with the Persistent flag set:
New-SmbGlobalMapping -Persistent $true -RemotePath <shared folder path> -Credential $credential -LocalPath <unassigned drive letter>:
- Repeat steps 2 through 5 on all machines participating in the ArcGIS Notebook Server site and assign the same drive letter for the mapped drive on all machines.
- Use the shared network drive created in the previous step to configure the workspace directory when creating the ArcGIS Notebook Server site.
Extend a notebook runtime
See Extend a notebook runtime for more information.
After successfully following the steps in this topic, you will now have an ArcGIS Notebook Server deployment set up with Windows containers.