List correct custom cnf directory in example cmd

The example commandline was listing a different directory than the rest of the docs.
This commit is contained in:
Manu 2021-05-07 17:02:09 +02:00 committed by Joe Ferguson
parent a7315a897f
commit 94e3e36775
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ The startup configuration is specified in the file `/etc/my.cnf`, and that file
If `/my/custom/config-file.cnf` is the path and name of your custom configuration file, you can start your `%%IMAGE%%` container like this (note that only the directory path of the custom config file is used in this command):
```console
$ docker run --name some-%%REPO%% -v /my/custom:/etc/mysql/conf.d -e MYSQL_ROOT_PASSWORD=my-secret-pw -d %%IMAGE%%:tag
$ docker run --name some-%%REPO%% -v /my/custom:/etc/my.cnf.d -e MYSQL_ROOT_PASSWORD=my-secret-pw -d %%IMAGE%%:tag
```
This will start a new container `some-%%REPO%%` where the Percona Server for MySQL instance uses the combined startup settings from `/etc/my.cnf` and `/etc/my.cnf.d/config-file.cnf`, with settings from the latter taking precedence.