> For the complete documentation index, see [llms.txt](https://docs.portainer.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.portainer.io/user/docker/secrets/add.md).

# Add a new secret

From the menu select **Secrets** then click **Add secret**.

<figure><img src="https://content.gitbook.com/content/MmwXfSb4bP3JyB8BLrAf/blobs/YzvRP8ak48I7czlBpdp1/2.15-docker_secrets_secret_add.gif" alt=""><figcaption></figcaption></figure>

Next, give the secret a descriptive name and write a definition of the secret in the **Secret** field. Toggle **Encode secret** on if you want to encode the secret (useful when you use a plain-text password).

<figure><img src="https://content.gitbook.com/content/MmwXfSb4bP3JyB8BLrAf/blobs/AJmB6nfTk8y3i9ZnDjTB/2.15-docker_secrets_secret_create.png" alt=""><figcaption></figcaption></figure>

When you're finished, click **Create the secret**.
