mysql-container icon indicating copy to clipboard operation
mysql-container copied to clipboard

Allow to set-up the data directory separately

Open hhorak opened this issue 10 years ago • 3 comments
trafficstars

Let's allow users to setup separately the data directory. Something like that might be quite handy for users: run it once with docker run --rm -e MYSQL_PASSWORD=* ... run-mysqld-setup.sh, which configures the storage area, then run with docker run ...

hhorak avatar Aug 21 '15 09:08 hhorak

how is that different from running it, letting it setup the storage, and then killing it, and then running it again later?

@mnagy fyi.

bparees avatar Aug 21 '15 13:08 bparees

It is the same, but less anoying. On Aug 21, 2015 3:53 PM, "Ben Parees" [email protected] wrote:

how is that different from running it, letting it setup the storage, and then killing it, and then running it again later?

@mnagy https://github.com/mnagy fyi.

— Reply to this email directly or view it on GitHub https://github.com/openshift/mysql/issues/82#issuecomment-133430963.

hhorak avatar Aug 21 '15 15:08 hhorak

i'd vote for doing this w/ an env variable then. -e SETUP_ONLY=true

bparees avatar Aug 21 '15 16:08 bparees