From 9a3ee34aaa8b53ec13f3c4ccfd6f84987653d029 Mon Sep 17 00:00:00 2001 From: tms Date: Fri, 22 Sep 2023 22:57:10 +0200 Subject: [PATCH] Update 'Docker secrets' --- Docker-secrets.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 Docker-secrets.md diff --git a/Docker-secrets.md b/Docker-secrets.md new file mode 100644 index 0000000..257ff01 --- /dev/null +++ b/Docker-secrets.md @@ -0,0 +1,7 @@ +Docker Secrets + +As an alternative to passing sensitive information via environment variables, _FILE may be appended to the previously listed environment variables, causing the initialization script to load the values for those variables from files present in the container. In particular, this can be used to load passwords from Docker secrets stored in /run/secrets/ files. For example: + +$ docker run --name some-mysql -e MYSQL_ROOT_PASSWORD_FILE=/run/secrets/mysql-root -d percona:tag + +Currently, this is only supported for MYSQL_ROOT_PASSWORD, MYSQL_ROOT_HOST, MYSQL_DATABASE, MYSQL_USER, and MYSQL_PASSWORD. \ No newline at end of file