# Add a new secret

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

<figure><img src="https://content.gitbook.com/content/xdTQRpMuktD2l0URtOJO/blobs/ZgKFV3zXbJMw1DVCK2BW/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/xdTQRpMuktD2l0URtOJO/blobs/L85RTLf9k2t6djdET5Eu/2.15-docker_secrets_secret_create.png" alt=""><figcaption></figcaption></figure>

&#x20;When you're finished, click **Create the secret**.
