---
sourceDocument: Australia Build or modify applications
sourceDocumentLink: https://www.servicenow.com/docs/r/application-development

 Release :

    - australia

ft:locale :

    - en-US

ft:publication_title :

    - Australia Build or modify applications

ft:clusterId :

    - cadev

bundleId :

    - cadev

workflow :

    - Development, Data, and Analytics


---

# Add secrets to Docker for Headless Browser setup in Microsoft Windows

# Add secrets to Docker for Headless Browser setup in Microsoft
Windows {#ariaid-title1}

* Release version: Australia
* 
* Updated March 12, 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

Create a Docker secret that stores the password of the ServiceNow user who will log into the instance to execute the tests. Docker Secrets is a feature of ServiceNow® for securely storing the passwords that will be used in containers.

## Before you begin

Complete Step 4: [Create the Docker image and containers for Headless Browser setup in Microsoft Windows](https://www.servicenow.com/docs/Ov0dtBCO8bG5OEbeHJHC1g "Pull the Docker image from the Public Registry.")

Role required: Go to your ServiceNow instance and create a new user to be used by the Docker container to log in. Give this user the roles of admin or atf_test_admin. Save the
password to be used in Step 2 of the following procedure.

## About this task

Inside the Docker container is an automation script that opens a web browser, logs into the instance, and opens the Client Test Runner page. In order to log into the ServiceNow instance, you will need a user password. In this step you use a Docker feature called Docker Secrets so you can securely store passwords. Then when you run containers, the password is
automatically available to log in to your instance.

## Procedure

1. In the admin command line, enter `docker swarm init`
2. In the admin command line, enter `echo <your user's password> |
   docker secret create sn_password - `  
   Note:  
   Replace `<your user's password>` with the user's ServiceNow password.
   Your results should look like this:
{#headless-browser-add-secrets-docker-windows__steps_s3k_rdf_jpb}

## Result

The result is your secret ID, which you must save for later use. The secret ID will be added to the ServiceNow instance in the sys_property `sn_atf.headless.secret_id`.
**Previous topic:** [Create the Docker image and containers for Headless Browser setup in Microsoft Windows](https://www.servicenow.com/docs/Ov0dtBCO8bG5OEbeHJHC1g "Pull the Docker image from the Public Registry.")  
**Next topic:** [Set up instance for Headless Browser in Microsoft Windows](https://www.servicenow.com/docs/d0x1aUN1chyAJTKFKTdbMw "Step 6 in the Microsoft Windows setup for the ServiceNow Headless Browser for ATF: Set up your instance so it can support the Headless Browser.")

