Configure Docker for Headless Browser setup in Microsoft Windows

  • 릴리스 버전: Australia
  • 업데이트 날짜 2026년 03월 12일
  • 소요 시간: 2분
  • Configure Docker Server to authenticate all requests.

    시작하기 전에

    Complete Step 2: Generate certificates for Headless Browser setup for Microsoft Windows

    Role required: admin on your ServiceNow instance and local administrator on the host machine.

    이 태스크 정보

    After creating your client and server keys, now you configure the Docker Server to authenticate all requests using those keys, and expose the Docker API on Port 2376.

    프로시저

    1. Configure Docker to use the certificates you generated in Step 2.
    2. Find or create the C:\ProgramData\docker\config\daemon.json file.
    3. Add the following properties to the daemon.json file.
      Be sure to replace items in these commands with the correct paths to your certificates:
      주:
      The double slashes are important to copy exactly.
      {
      "tlscacert": "C:\\Users\\Administrator\\certs\\ca.pem",
      "tlscert": "C:\\Users\\Administrator\\certs\\server-cert.pem",
      "tlscert": "C:\\Users\\Administrator\\certs\\server-cert.pem",
      "tlskey": "C:\\Users\\Administrator\\certs\\server-key.pem",
      "tlsverify": true,
      "hosts": ["tcp://0.0.0.0:2376", "npipe://"]
      }
      To learn more, see Configure the Docker daemon.
    4. In administrator PowerShell, run restart-service *docker*