Update secrets.md (#4507)

This commit is contained in:
Wang Jie 2017-09-06 05:25:11 +08:00 committed by John Mulhausen
parent 7884184388
commit 02bbc4118c
1 changed files with 8 additions and 8 deletions

View File

@ -69,7 +69,7 @@ examples below. Keep the following notable differences in mind:
- When creating a service which uses Windows containers, the options to specify - When creating a service which uses Windows containers, the options to specify
UID, GID, and mode are not supported for secrets. Secrets are currently only UID, GID, and mode are not supported for secrets. Secrets are currently only
accessible by administrators and and users with `system` access within the accessible by administrators and users with `system` access within the
container. container.
@ -835,12 +835,12 @@ This example builds upon the previous one. In this scenario, you create a new
secret with a new MySQL password, update the `mysql` and `wordpress` services to secret with a new MySQL password, update the `mysql` and `wordpress` services to
use it, then remove the old secret. use it, then remove the old secret.
**Note**: Changing the password on a MySQL database involves running extra > **Note**: Changing the password on a MySQL database involves running extra
queries or commands, as opposed to just changing a single environment variable > queries or commands, as opposed to just changing a single environment variable
or a file, since the image only sets the MySQL password if the database doesnt > or a file, since the image only sets the MySQL password if the database doesnt
already exist, and MySQL stores the password within a MySQL database by default. > already exist, and MySQL stores the password within a MySQL database by default.
Rotating passwords or other secrets may involve additional steps outside of > Rotating passwords or other secrets may involve additional steps outside of
Docker. > Docker.
1. Create the new password and store it as a secret named `mysql_password_v2`. 1. Create the new password and store it as a secret named `mysql_password_v2`.