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
Open an elevated PowerShell session and install the Docker-Microsoft PackageManagement Provider from the PowerShell Gallery.
PowerShell
Install-Module -Name DockerMsftProvider -Repository PSGallery -ForceIf you're prompted to install the NuGet provider, type
Yto install it as well.Use the PackageManagement PowerShell module to install the latest version of Docker.
PowerShell
Install-Package -Name docker -ProviderName DockerMsftProviderWhen PowerShell asks you whether to trust the package source 'DockerDefault', type
Ato continue the installation.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