Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

Install Docker for Headless Browser setup for Microsoft Windows

Step 1 in the Windows setup for the ServiceNow® Headless Browser for Automated Test Framework: Install Docker.

Before you begin

Role required: admin

  • See Prerequisites in the Headless Browser setup for Microsoft Windows topic.
  • Tip: To make remembering these easier, set the following environment variables:

  • set PASSWORD=<password>

  • set SERVERIP=<server ip>
  • set HOSTNAME=<hostname>

Warning: The only supported version of Microsoft Windows as a host is Windows Server 2019 v10.0.17763.737. No other versions are supported. If you are unable to meet these requirements, a Linux host is recommended.

Procedure

  1. Open an elevated PowerShell session and install the Docker-Microsoft PackageManagement Provider from the PowerShell Gallery.

    PowerShell

    Install-Module -Name DockerMsftProvider -Repository PSGallery -Force

    If you're prompted to install the NuGet provider, type Y to install it as well.

  2. Use the PackageManagement PowerShell module to install the latest version of Docker.

    PowerShell

    Install-Package -Name docker -ProviderName DockerMsftProvider

    When PowerShell asks you whether to trust the package source 'DockerDefault', type A to continue the installation.

  3. After the installation completes, restart the computer.

    PowerShell

    Restart-Computer -Force

Parent Topic:Headless Browser setup for Microsoft Windows

Previous topic:Headless Browser setup for Microsoft Windows

Next topic:Generate certificates for Headless Browser setup for Microsoft Windows