---
sourceDocument: Australia Build or modify applications
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/pt-BR/application-development

 Release :

    - australia

ft:locale :

    - pt-BR

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 Linux

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

* Versão de lançamento: Australia
* 
* Atualizado 12 de mar. de 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 min. de leitura

Create a Docker secret, which 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.

## Antes de Iniciar

Complete Step 3: [Create the Docker image and containers for Headless Browser setup in Linux](https://servicenow-prod.fluidtopics.net/HQgWpcQ8stdD0g_JM5QBJQ "Pull the Docker image from the Public Registry.")

Role required: none.

## Por Que e Quando Desempenhar Esta Tarefa

Inside of 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 procedure you use a Docker feature called Docker Secrets so you can securely store passwords. When you run containers,
the password is automatically available to log in to your instance.

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

## Procedimento

1. At the command line, enter `docker swarm init`
2. Enter `echo "<your user's password>" | docker secret create
   sn_password - `  
   Nota:  
   Replace `<your user's password>` with the user's ServiceNow password.
   Your results should look like this:

## Resultado

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`.
**Tópico anterior:** [Create the Docker image and containers for Headless Browser setup in Linux](https://servicenow-prod.fluidtopics.net/HQgWpcQ8stdD0g_JM5QBJQ "Pull the Docker image from the Public Registry.")  
**Próximo tópico:** [Set up instance for Headless Browser in Linux](https://servicenow-prod.fluidtopics.net/6C1NhFrj3L4FE9T6dVpRwQ "Step 5 in the Linux setup for the ServiceNow Headless Browser for ATF: Set up your instance so it can support the Headless Browser.")

