From d2805df33ed5ef5df5be26a983476aad0f85a9b4 Mon Sep 17 00:00:00 2001 From: Moghedrin Date: Thu, 20 Nov 2014 15:58:18 -0700 Subject: [PATCH] Add a notice for behavior on database initialization --- mysql/README.md | 8 ++++++++ mysql/content.md | 8 ++++++++ postgres/README.md | 8 ++++++++ postgres/content.md | 8 ++++++++ 4 files changed, 32 insertions(+) diff --git a/mysql/README.md b/mysql/README.md index d336899e8..58544deca 100644 --- a/mysql/README.md +++ b/mysql/README.md @@ -75,6 +75,14 @@ a user/password was supplied (via the `MYSQL_USER` and `MYSQL_PASSWORD` environment variables) then that user account will be granted (`GRANT ALL`) access to this database. +# Caveats + +If there is no database when `mysql` starts in a container, then `mysql` will +create the default database for you. While this is the expected behavior of +`mysql`, this means that it will not accept incoming connections during that +time. This may cause issues when using automation tools, such as `fig`, that +start several containers simultaneously. + # User Feedback ## Issues diff --git a/mysql/content.md b/mysql/content.md index 6a1d319f1..a7b3fe87c 100644 --- a/mysql/content.md +++ b/mysql/content.md @@ -62,3 +62,11 @@ This optional environment variable denotes the name of a database to create. If a user/password was supplied (via the `MYSQL_USER` and `MYSQL_PASSWORD` environment variables) then that user account will be granted (`GRANT ALL`) access to this database. + +# Caveats + +If there is no database when `mysql` starts in a container, then `mysql` will +create the default database for you. While this is the expected behavior of +`mysql`, this means that it will not accept incoming connections during that +time. This may cause issues when using automation tools, such as `fig`, that +start several containers simultaneously. diff --git a/postgres/README.md b/postgres/README.md index e8591d5fa..990eb73b5 100644 --- a/postgres/README.md +++ b/postgres/README.md @@ -77,6 +77,14 @@ Postgres'' [single user mode](http://www.postgresql.org/docs/9.3/static/app-postgres.html#AEN90580) is highly recommended. +# Caveats + +If there is no database when `postgres` starts in a container, then `postgres` will +create the default database for you. While this is the expected behavior of +`postgres`, this means that it will not accept incoming connections during that +time. This may cause issues when using automation tools, such as `fig`, that +start several containers simultaneously. + # User Feedback ## Issues diff --git a/postgres/content.md b/postgres/content.md index ab6052dd6..eee74155c 100644 --- a/postgres/content.md +++ b/postgres/content.md @@ -61,3 +61,11 @@ need to execute SQL commands as part of your initialization, the use of Postgres'' [single user mode](http://www.postgresql.org/docs/9.3/static/app-postgres.html#AEN90580) is highly recommended. + +# Caveats + +If there is no database when `postgres` starts in a container, then `postgres` will +create the default database for you. While this is the expected behavior of +`postgres`, this means that it will not accept incoming connections during that +time. This may cause issues when using automation tools, such as `fig`, that +start several containers simultaneously.