Install Docker for Headless Browser setup for Microsoft Windows

  • 릴리스 버전: Australia
  • 업데이트 날짜 2026년 03월 12일
  • 소요 시간: 2분
  • Step 1 in the Windows setup for the ServiceNow® Headless Browser for Automated Test Framework: Install Docker.

    시작하기 전에

    Role required: admin

    • See Prerequisites in the Headless Browser setup for Microsoft Windows topic.
    • 팁:
      To make remembering these easier, set the following environment variables:
      • set PASSWORD=<password>
      • set SERVERIP=<server ip>
      • set HOSTNAME=<hostname>
    경고:
    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.

    프로시저

    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