Skip to content

Commit 897646e

Browse files
committed
mariadb: using --port
As mentioned in #2708 docs documenting how to change the port, particular for host networking was requested. The example in "configuration without a cnf file section" was already the default anyway (utf8), so this was just replaced. Using MARIADB_ROOT_PASSWORD in the example to move away from MySQL naming (still supported however). Closes: docker-library#2078
1 parent 589aa1e commit 897646e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mariadb/content.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,10 @@ This will start a new container `some-%%REPO%%` where the MariaDB instance uses
8383

8484
### Configuration without a `cnf` file
8585

86-
Many configuration options can be passed as flags to `mysqld`. This will give you the flexibility to customize the container without needing a `cnf` file. For example, if you want to change the default encoding and collation for all tables to use UTF-8 (`utf8mb4`) just run the following:
86+
Many configuration options can be passed as flags to `mysqld`. This will give you the flexibility to customize the container without needing a `cnf` file. For example, if you want to run on port 3808 just run the following:
8787

8888
```console
89-
$ docker run --name some-%%REPO%% -e MYSQL_ROOT_PASSWORD=my-secret-pw -d %%IMAGE%%:latest --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
89+
$ docker run --name some-%%REPO%% -e MARIADB_ROOT_PASSWORD=my-secret-pw -d %%IMAGE%%:latest --port 3808
9090
```
9191

9292
If you would like to see a complete list of available options, just run:

0 commit comments

Comments
 (0)